diff --git a/web3.js/test/connection.test.ts b/web3.js/test/connection.test.ts index c05053581b..08e0383114 100644 --- a/web3.js/test/connection.test.ts +++ b/web3.js/test/connection.test.ts @@ -847,7 +847,11 @@ describe('Connection', function () { for (const key of inflationKeys) { expect(inflation).to.have.property(key); - expect(inflation[key]).to.be.greaterThan(0); + if (mockServer) { + expect(inflation[key]).to.be.greaterThan(0); + } else { + expect(inflation[key]).to.be.at.least(0); + } } });