Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v2.11): integration tests #267

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions integration-tests/src/modules/alliance/alliance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/
val2WalletAddress,
VoteOption.VOTE_OPTION_YES
)],
fee: new Fee(100_000, "0uluna"),
fee: new Fee(100_000, "100000uluna"),
chainID: "test-2",
});
result = await LCD.chain2.tx.broadcastSync(tx, "test-2");
Expand Down Expand Up @@ -231,7 +231,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/
ibcCoin.denom,
),
],
fee: new Fee(300_000, "0uluna"),
fee: new Fee(300_000, "100000uluna"),
chainID: "test-2",
});
let result = await LCD.chain2.tx.broadcastSync(tx, "test-2");
Expand Down Expand Up @@ -261,7 +261,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/
new Coin(ibcCoin.denom, 1000),
),
],
fee: new Fee(300_000, "0uluna"),
fee: new Fee(300_000, "100000uluna"),
chainID: "test-2",
});
let result = await LCD.chain2.tx.broadcastSync(tx, "test-2");
Expand Down Expand Up @@ -321,7 +321,7 @@ describe("Alliance Module (https://github.com/terra-money/alliance/tree/release/
val2WalletAddress,
VoteOption.VOTE_OPTION_YES
)],
fee: new Fee(100_000, "0uluna"),
fee: new Fee(100_000, "100000uluna"),
chainID: "test-2",
});
result = await LCD.chain2.tx.broadcastSync(tx, "test-2");
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/src/modules/gov/gov.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ describe("Governance Module (https://github.com/terra-money/cosmos-sdk/tree/rele
val2WalletAddress,
VoteOption.VOTE_OPTION_YES
)],
fee: new Fee(100_000, "0uluna"),
fee: new Fee(100_000, "100000uluna"),
chainID: "test-2",
});
result = await LCD.chain2.tx.broadcastSync(tx, "test-2");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,17 +464,17 @@ describe("TokenFactory Module (https://github.com/terra-money/core/tree/release/
new MsgSend(
tokenFactoryWalletAddr,
randomAccountAddr,
Coins.fromString("1000000000" + factoryDenom),
Coins.fromString("100" + factoryDenom),
),
],
chainID: "test-1",
fee: new Fee(100_000, new Coins({ uluna: 100_000 })),
fee: new Fee(2000_000, new Coins({ uluna: 100_000 })),
});
let result = await LCD.chain1.tx.broadcastSync(tx, "test-1");
await blockInclusion();
let txResult = await LCD.chain1.tx.txInfo(result.txhash, "test-1") as any;
expect(txResult.raw_log)
.toStrictEqual("failed to execute message; message index: 0: {Loading CosmWasm module: sudo}: gas meter hit maximum limit");
.toStrictEqual(`failed to execute message; message index: 0: failed to call before send hook for denom ${factoryDenom}: Custom Error val: \"Invalid Send Amount\": execute wasm contract failed`);
});
});
})
Expand Down
Loading