test: fix get inflation rate test failed at test:live (#29413)
This commit is contained in:
parent
b0c8e0ff03
commit
3cfd1b244d
|
@ -847,7 +847,11 @@ describe('Connection', function () {
|
||||||
|
|
||||||
for (const key of inflationKeys) {
|
for (const key of inflationKeys) {
|
||||||
expect(inflation).to.have.property(key);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue