Skip to content

Commit

Permalink
Merge pull request #267 from terra-money/fix/integration-tests
Browse files Browse the repository at this point in the history
fix(v2.11): integration tests
  • Loading branch information
emidev98 committed Mar 4, 2024
2 parents bd796da + e439dd5 commit 2a1e886
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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

0 comments on commit 2a1e886

Please sign in to comment.