From e1cddb3f3eb82071ab38c24157ae88d6c7aa7b6e Mon Sep 17 00:00:00 2001 From: Khanh Hoa Date: Mon, 22 Apr 2024 12:07:57 +0700 Subject: [PATCH] test: update config --- tests/interchaintest/ibc_transfer_test.go | 8 +++++++- tests/interchaintest/polkadot_chain_test.go | 10 +++++----- tests/interchaintest/push_wasm_client_code_test.go | 5 ++++- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/tests/interchaintest/ibc_transfer_test.go b/tests/interchaintest/ibc_transfer_test.go index 7631b5f42..a7772f0e8 100644 --- a/tests/interchaintest/ibc_transfer_test.go +++ b/tests/interchaintest/ibc_transfer_test.go @@ -47,7 +47,7 @@ func TestCentauriPicassoIBCTransfer(t *testing.T) { nf := 3 // Number of full nodes consensusOverrides := make(testutil.Toml) - blockTime := 5 // seconds, parachain is 12 second blocks, don't make relayer work harder than needed + blockTime := 2 // seconds, parachain is 12 second blocks, don't make relayer work harder than needed blockT := (time.Duration(blockTime) * time.Second).String() consensusOverrides["timeout_commit"] = blockT consensusOverrides["timeout_propose"] = blockT @@ -310,10 +310,16 @@ func pushWasmContractViaGov(t *testing.T, ctx context.Context, centaurid *cosmos height, err := centaurid.Height(ctx) require.NoError(t, err, "error fetching height before submit upgrade proposal") + p, err := centaurid.QueryProposal(ctx, proposalTx.ProposalID) + fmt.Println(p) + err = centaurid.VoteOnProposalAllValidators(ctx, proposalTx.ProposalID, cosmos.ProposalVoteYes) require.NoError(t, err, "failed to submit votes") _, err = cosmos.PollForProposalStatus(ctx, centaurid, height, height+heightDelta, proposalTx.ProposalID, cosmos.ProposalStatusPassed) + p, err = centaurid.QueryProposal(ctx, proposalTx.ProposalID) + fmt.Println("proposal after", p) + require.Equal(t, p.Status, cosmos.ProposalStatusPassed) require.NoError(t, err, "proposal status did not change to passed in expected number of blocks") err = testutil.WaitForBlocks(ctx, 1, centaurid) diff --git a/tests/interchaintest/polkadot_chain_test.go b/tests/interchaintest/polkadot_chain_test.go index 7dd018819..41299fad5 100644 --- a/tests/interchaintest/polkadot_chain_test.go +++ b/tests/interchaintest/polkadot_chain_test.go @@ -39,14 +39,14 @@ func TestPolkadotCentauriChainStart(t *testing.T) { ChainID: "rococo-local", Images: []ibc.DockerImage{ { - Repository: "parity/polkadot", - Version: "v0.9.39", + Repository: "ghcr.io/misko9/polkadot-node", + Version: "v39", UidGid: "1000:1000", }, { - Repository: "composablefi/parachain-node", - Version: "13f3db34-1688755040", - // UidGid: "1025:1025", + Repository: "ghcr.io/misko9/parachain-node", + Version: "20231122v39", + UidGid: "1000:1000", }, }, Bin: "polkadot", diff --git a/tests/interchaintest/push_wasm_client_code_test.go b/tests/interchaintest/push_wasm_client_code_test.go index 14cbf4040..696d42f80 100644 --- a/tests/interchaintest/push_wasm_client_code_test.go +++ b/tests/interchaintest/push_wasm_client_code_test.go @@ -21,7 +21,7 @@ import ( const ( heightDelta = uint64(20) - votingPeriod = "30s" + votingPeriod = "20s" maxDepositPeriod = "10s" ) @@ -62,6 +62,8 @@ func TestPushWasmClientCode(t *testing.T) { configFileOverrides["config/app.toml"] = appTomlOverrides configFileOverrides["config/config.toml"] = configTomlOverrides + numValidator := 1 + cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{ { ChainConfig: ibc.ChainConfig{ @@ -80,6 +82,7 @@ func TestPushWasmClientCode(t *testing.T) { ConfigFileOverrides: configFileOverrides, ModifyGenesis: modifyGenesisShortProposals(votingPeriod, maxDepositPeriod), }, + NumValidators: &numValidator, }, })