Skip to content

Commit

Permalink
test: fix get inflation rate failed at test:live
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Dec 24, 2022
1 parent b0c8e0f commit b060f94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web3.js/test/connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
});

Expand Down

0 comments on commit b060f94

Please sign in to comment.