From a9788ea08a80040e990d51e6c4c03e7c7d08fb4e Mon Sep 17 00:00:00 2001 From: hoangdv2429 Date: Fri, 13 Sep 2024 16:14:32 +0700 Subject: [PATCH] update configs --- tests/canonical_light_client_test.go | 8 ++++++-- tests/setup.go | 14 +++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/tests/canonical_light_client_test.go b/tests/canonical_light_client_test.go index 39776937..d477aadb 100644 --- a/tests/canonical_light_client_test.go +++ b/tests/canonical_light_client_test.go @@ -34,6 +34,7 @@ func TestIBCTransferBetweenHub3rd_EVM(t *testing.T) { dymintTomlOverrides["settlement_gas_prices"] = "0adym" dymintTomlOverrides["max_idle_time"] = "3s" dymintTomlOverrides["max_proof_time"] = "500ms" + dymintTomlOverrides["batch_submit_time"] = "20s" dymintTomlOverrides["batch_submit_max_time"] = "100s" configFileOverrides["config/dymint.toml"] = dymintTomlOverrides @@ -237,6 +238,7 @@ func TestIBCTransferRA_3rdSameChainID_EVM(t *testing.T) { dymintTomlOverrides["settlement_gas_prices"] = "0adym" dymintTomlOverrides["max_idle_time"] = "3s" dymintTomlOverrides["max_proof_time"] = "500ms" + dymintTomlOverrides["batch_submit_time"] = "20s" dymintTomlOverrides["batch_submit_max_time"] = "100s" configFileOverrides["config/dymint.toml"] = dymintTomlOverrides @@ -481,9 +483,11 @@ func TestIBCTransferRA_3rdSameChainID_EVM(t *testing.T) { transferTx, err = rollapp1.SendIBCTransfer(ctx, rollappDymChan.ChannelID, rollappUser.KeyName(), transfer, ibc.TransferOptions{}) require.NoError(t, err) - // wait until dymension receive transferAmount - err = testutil.WaitForBlocks(ctx, 10, dymension, rollapp1) + // wait until dymension receive transferAmount when rollapp finalized + rollappHeight, err := rollapp1.GetNode().Height(ctx) + isFinalized, err := dymension.WaitUntilRollappHeightIsFinalized(ctx, rollapp1.GetNode().Chain.GetChainID(), rollappHeight, 600) require.NoError(t, err) + require.True(t, isFinalized) testutil.AssertBalance(t, ctx, rollapp1, rollappUserAddr, rollapp1.Config().Denom, walletAmount.Sub(transferAmount)) testutil.AssertBalance(t, ctx, dymension, dymensionUserAddr, firstHopIBCDenom, transferAmount) diff --git a/tests/setup.go b/tests/setup.go index 4558e124..5a83585f 100644 --- a/tests/setup.go +++ b/tests/setup.go @@ -197,18 +197,18 @@ var ( gaiaGenesisKV = []cosmos.GenesisKV{ { Key: "app_state.staking.params.unbonding_time", - Value: "600s", + Value: "1200s", }, } rollappEVMGenesisKV = []cosmos.GenesisKV{ { Key: "app_state.sequencers.params.unbonding_time", - Value: "600s", + Value: "1200s", }, { Key: "app_state.staking.params.unbonding_time", - Value: "600s", + Value: "1200s", }, { Key: "app_state.mint.params.mint_denom", @@ -280,11 +280,11 @@ var ( rollappWasmGenesisKV = []cosmos.GenesisKV{ { Key: "app_state.sequencers.params.unbonding_time", - Value: "600s", + Value: "1200s", }, { Key: "app_state.staking.params.unbonding_time", - Value: "600s", + Value: "1200s", }, // Bank denom metadata { @@ -316,11 +316,11 @@ var ( dymensionGenesisKV = []cosmos.GenesisKV{ { Key: "app_state.sequencer.params.unbonding_time", - Value: "600s", + Value: "1200s", }, { Key: "app_state.staking.params.unbonding_time", - Value: "600s", + Value: "1200s", }, // gov params {