Skip to content

Commit

Permalink
test: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed Apr 22, 2024
1 parent d8e838e commit e1cddb3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
8 changes: 7 additions & 1 deletion tests/interchaintest/ibc_transfer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions tests/interchaintest/polkadot_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion tests/interchaintest/push_wasm_client_code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

const (
heightDelta = uint64(20)
votingPeriod = "30s"
votingPeriod = "20s"
maxDepositPeriod = "10s"
)

Expand Down Expand Up @@ -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{
Expand All @@ -80,6 +82,7 @@ func TestPushWasmClientCode(t *testing.T) {
ConfigFileOverrides: configFileOverrides,
ModifyGenesis: modifyGenesisShortProposals(votingPeriod, maxDepositPeriod),
},
NumValidators: &numValidator,
},
})

Expand Down

0 comments on commit e1cddb3

Please sign in to comment.