From 0cab27d52958b697a73540c8213fa2b586c88459 Mon Sep 17 00:00:00 2001 From: Tomas Tauber <2410580+tomtau@users.noreply.github.com> Date: Mon, 25 Oct 2021 17:08:34 +0800 Subject: [PATCH] fix: importer test is run on rpc tests check (#700) restricted "go test" invocation in integration test scripts to e2e and rpc sub-dirs closes #694 --- scripts/integration-test-all.sh | 3 ++- scripts/start.sh | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/integration-test-all.sh b/scripts/integration-test-all.sh index 6542c4a1..eb55da3a 100755 --- a/scripts/integration-test-all.sh +++ b/scripts/integration-test-all.sh @@ -148,7 +148,8 @@ if [[ -z $TEST || $TEST == "rpc" || $TEST == "pending" ]]; then for i in $(seq 1 "$TEST_QTD"); do HOST_RPC=http://$IP_ADDR:$RPC_PORT"$i" echo "going to test ethermint node $HOST_RPC ..." - MODE=$MODE HOST=$HOST_RPC go test ./tests/... -timeout=$time_out -v -short + MODE=$MODE HOST=$HOST_RPC go test ./tests/e2e/... -timeout=$time_out -v -short + MODE=$MODE HOST=$HOST_RPC go test ./tests/rpc/... -timeout=$time_out -v -short RPC_FAIL=$? done diff --git a/scripts/start.sh b/scripts/start.sh index c5e84729..285ebda4 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -124,8 +124,9 @@ if [[ -z $TEST || $TEST == "rpc" ]]; then for i in $(seq 1 "$TEST_QTD"); do HOST_RPC=http://$IP_ADDR:$RPC_PORT"$i" echo "going to test ethermint node $HOST_RPC ..." - MODE=$MODE HOST=$HOST_RPC go test ./tests/... -timeout=300s -v -short - + MODE=$MODE HOST=$HOST_RPC go test ./tests/e2e/... -timeout=300s -v -short + MODE=$MODE HOST=$HOST_RPC go test ./tests/rpc/... -timeout=300s -v -short + RPC_FAIL=$? done