test: fix get inflation rate test failed at test:live (#29413)

This commit is contained in:
Yihau Chen 2022-12-25 02:24:49 +08:00 committed by GitHub
parent b0c8e0ff03
commit 3cfd1b244d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}
}
});