mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Increase accepted gas range in simulation tests
This commit is contained in:
parent
4bf33f24ea
commit
2a16375eab
@ -90,7 +90,7 @@ describe("SigningCosmWasmClient", () => {
|
||||
const memo = "Go go go";
|
||||
const gasUsed = await client.simulate(alice.address0, [executeContractMsg], memo);
|
||||
expect(gasUsed).toBeGreaterThanOrEqual(101_000);
|
||||
expect(gasUsed).toBeLessThanOrEqual(106_000);
|
||||
expect(gasUsed).toBeLessThanOrEqual(150_000);
|
||||
client.disconnect();
|
||||
});
|
||||
});
|
||||
|
@ -95,7 +95,7 @@ describe("TxExtension", () => {
|
||||
const { sequence } = await sequenceClient.getSequence(faucet.address0);
|
||||
const response = await client.tx.simulate([msgAny], "foo", faucet.pubkey0, sequence);
|
||||
expect(response.gasInfo?.gasUsed.toNumber()).toBeGreaterThanOrEqual(101_000);
|
||||
expect(response.gasInfo?.gasUsed.toNumber()).toBeLessThanOrEqual(107_000);
|
||||
expect(response.gasInfo?.gasUsed.toNumber()).toBeLessThanOrEqual(150_000);
|
||||
expect(response.gasInfo?.gasWanted).toEqual(longify(Long.UZERO));
|
||||
|
||||
tmClient.disconnect();
|
||||
|
@ -64,7 +64,7 @@ describe("SigningStargateClient", () => {
|
||||
const memo = "Use your power wisely";
|
||||
const gasUsed = await client.simulate(faucet.address0, [msgAny], memo);
|
||||
expect(gasUsed).toBeGreaterThanOrEqual(101_000);
|
||||
expect(gasUsed).toBeLessThanOrEqual(106_000);
|
||||
expect(gasUsed).toBeLessThanOrEqual(150_000);
|
||||
|
||||
client.disconnect();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user