Skip to content

Commit

Permalink
test: add interchaintest
Browse files Browse the repository at this point in the history
  • Loading branch information
hoank101 committed May 27, 2024
1 parent f247a74 commit 35a0529
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 23 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,34 @@ ictest-upgrade:
cd tests/interchaintest && go test -timeout=25m -race -v -run TestCentauriUpgrade .

# Executes all tests via interchaintest after compling a local image as juno:local
ictest-all: ictest-start-cosmos ictest-start-polkadot ictest-ibc
ictest-all: ictest-start-cosmos ictest-start-polkadot ictest-ibc ictest-ibc-cosmos ictest-chain-core ictest-pfm ictest-pfm-router ictest-pfm-timeout ictest-miscellaneous ictest-ibc-hooks

# Executes push wasm client tests via interchaintest
ictest-push-wasm:
cd tests/interchaintest && go test -race -v -run TestPushWasmClientCode .

ictest-ibc-cosmos:
cd tests/interchaintest && go test -race -v -run TestComposableGaiaIBCTransfer .

ictest-chain-core:
cd tests/interchaintest && go test -race -v -run TestCoreSDKCommands .

ictest-pfm-timeout:
cd tests/interchaintest && go test -race -v -run TestTimeoutOnForward .

ictest-pfm:
cd tests/interchaintest && go test -race -v -run TestPacketForwardMiddleware .

ictest-pfm-router:
cd tests/interchaintest && go test -race -v -run TestPacketForwardMiddlewareRouter .

ictest-ibc-hooks:
cd tests/interchaintest && go test -race -v -run TestComposableIBCHooks .

ictest-miscellaneous:
cd tests/interchaintest && go test -race -v -run TestICTestMiscellaneous .


# Init 2 cosmos chains and setup ibc between them
init-test-interchain: clean-testing-data install
./scripts/test-upgrade-cosmos-chains.sh
Expand Down
2 changes: 2 additions & 0 deletions x/ratelimit/relay_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ratelimit_test

import (
"fmt"
"testing"

sdkmath "cosmossdk.io/math"
Expand Down Expand Up @@ -390,6 +391,7 @@ func (suite *RateLimitTestSuite) TestReceiveIBCTokenWithMinRateLimitAmount() {

// not receive token because catch the threshold => balances have no change
gotBalance = suite.chainB.AllBalances(suite.chainB.SenderAccount.GetAddress())
fmt.Println(expBalance.String(), gotBalance.String())
suite.Require().Equal(expBalance, gotBalance)
}

Expand Down

0 comments on commit 35a0529

Please sign in to comment.