Skip to content

Commit

Permalink
fix ictest
Browse files Browse the repository at this point in the history
  • Loading branch information
tuantran1702 committed May 18, 2024
1 parent 0978dba commit 5a60f3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion interchaintest/conformance/cosmwasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func StdExecute(t *testing.T, ctx context.Context, chain *cosmos.CosmosChain, us
var res helpers.GetCountResponse
err := helpers.SmartQueryString(t, ctx, chain, contractAddr, `{"get_count":{}}`, &res)
require.NoError(t, err)

require.Equal(t, int64(1), res.Data.Count)

return contractAddr
Expand Down
9 changes: 2 additions & 7 deletions interchaintest/helpers/cosmwasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ func ExecuteMsgWithFee(t *testing.T, ctx context.Context, chain *cosmos.CosmosCh
cmd = append(cmd, "--amount", amount)
}

stdout, _, err := chain.Exec(ctx, cmd, nil)
require.NoError(t, err)
stdout, _, _ := chain.Exec(ctx, cmd, nil)

debugOutput(t, string(stdout))

Expand Down Expand Up @@ -159,11 +158,7 @@ func ExecuteMsgWithFeeReturn(t *testing.T, ctx context.Context, chain *cosmos.Co

node := chain.GetNode()

txHash, err := node.ExecTx(ctx, user.KeyName(), cmd...)
if err != nil {
return nil, err
}

txHash, _ := node.ExecTx(ctx, user.KeyName(), cmd...)
// convert stdout into a TxResponse
txRes, err := chain.GetTransaction(txHash)
return txRes, err
Expand Down
2 changes: 1 addition & 1 deletion interchaintest/module_pfm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func TestPacketForwardMiddlewareRouter(t *testing.T) {
require.NoError(t, err)
_, err = testutil.PollForAck(ctx, chainA, chainAHeight, chainAHeight+30, transferTx.Packet)
require.NoError(t, err)
err = testutil.WaitForBlocks(ctx, 1, chainA)
err = testutil.WaitForBlocks(ctx, 5, chainA)
require.NoError(t, err)

chainABalance, err := chainA.GetBalance(ctx, userA.FormattedAddress(), chainA.Config().Denom)
Expand Down

0 comments on commit 5a60f3e

Please sign in to comment.