Skip to content

Commit

Permalink
fix running wrong test in Makefile, also catching bug when upload con…
Browse files Browse the repository at this point in the history
…tract
  • Loading branch information
tuantran1702 committed Mar 22, 2024
1 parent e1335e3 commit 4c4d7f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,14 @@ ictest-host-zone-proposal:
cd tests/interchaintest && go test -timeout=25m -race -v -run TestHostZoneProposal .

ictest-feeabs:
cd tests/interchaintest && go test -timeout=25m -race -v -run TestFeeabs .
cd tests/interchaintest && go test -timeout=25m -race -v -run '^TestFeeAbs$$' .

ictest-query-osmosis-twap:
cd tests/interchaintest && go test -timeout=25m -race -v -run TestQueryOsmosisTwap .

# ictest-feeabs-ibc-transfer:
# cd tests/interchaintest && go test -timeout=25m -race -v -run TestIBCTransferWithFeeAbs .

# Executes all tests via interchaintest after compling a local image as juno:local
ictest-all: ictest-basic ictest-ibc ictest-packet-forward ictest-host-zone-proposal ictest-query-osmosis-twap ictest-feeabs

Expand Down
3 changes: 2 additions & 1 deletion tests/interchaintest/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func modifyGenesisShortProposals(votingPeriod string, maxDepositPeriod string, q
}

func SetupChain(t *testing.T, ctx context.Context) ([]ibc.Chain, []ibc.Wallet, []ibc.ChannelOutput) {
t.Helper()
client, network := interchaintest.DockerSetup(t)

rep := testreporter.NewNopReporter()
Expand Down Expand Up @@ -520,7 +521,7 @@ func SetupOsmosisContracts(t *testing.T,

// 3. Crosschain Swaps Contract
initMsg = fmt.Sprintf("{\"swap_contract\":\"%s\",\"governor\": \"%s\"}", swaprouterContractAddr, owner)
xcsV2ContractAddr, err := osmosis.InstantiateContract(ctx, user.KeyName(), xcsV2Wasm, initMsg, true)
xcsV2ContractAddr, err := osmosis.InstantiateContract(ctx, user.KeyName(), xcsV2CodeId, initMsg, true)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4c4d7f8

Please sign in to comment.