Increase tolerance for slow block creation in "gets height via last block"
This commit is contained in:
parent
7369e5b619
commit
1c233774f9
@ -72,7 +72,7 @@ describe("CosmWasmClient", () => {
|
||||
|
||||
const height1 = await client.getHeight();
|
||||
expect(height1).toBeGreaterThan(0);
|
||||
await sleep(blockTime * 1.3); // tolerate chain being 30% slower than expected
|
||||
await sleep(blockTime * 1.4); // tolerate chain being 40% slower than expected
|
||||
const height2 = await client.getHeight();
|
||||
expect(height2).toBeGreaterThanOrEqual(height1 + 1);
|
||||
expect(height2).toBeLessThanOrEqual(height1 + 2);
|
||||
|
||||
@ -60,7 +60,7 @@ describe("CosmosClient", () => {
|
||||
|
||||
const height1 = await client.getHeight();
|
||||
expect(height1).toBeGreaterThan(0);
|
||||
await sleep(blockTime * 1.3); // tolerate chain being 30% slower than expected
|
||||
await sleep(blockTime * 1.4); // tolerate chain being 40% slower than expected
|
||||
const height2 = await client.getHeight();
|
||||
expect(height2).toBeGreaterThanOrEqual(height1 + 1);
|
||||
expect(height2).toBeLessThanOrEqual(height1 + 2);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user