From e6d416db7f182439cbfd94423ef78e993f6af42e Mon Sep 17 00:00:00 2001 From: Sai Kumar Date: Tue, 26 Apr 2022 16:22:19 +0530 Subject: [PATCH] WIP: fixing the test cases --- scripts/run-solidity-tests.sh | 2 +- tests/importer/importer_test.go | 2 +- tests/solidity/init-test-node.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/run-solidity-tests.sh b/scripts/run-solidity-tests.sh index 0fce4bd0..4c61bf61 100755 --- a/scripts/run-solidity-tests.sh +++ b/scripts/run-solidity-tests.sh @@ -3,7 +3,7 @@ export GOPATH=~/go export PATH=$PATH:$GOPATH/bin # remove existing daemon -rm -rf ~/.ethermintd +rm -rf ~/.chibaclonk* # build ethermint binary make install diff --git a/tests/importer/importer_test.go b/tests/importer/importer_test.go index e141f40a..3d19ec84 100644 --- a/tests/importer/importer_test.go +++ b/tests/importer/importer_test.go @@ -59,7 +59,7 @@ type ImporterTestSuite struct { /// DoSetupTest setup test environment, it uses`require.TestingT` to support both `testing.T` and `testing.B`. func (suite *ImporterTestSuite) DoSetupTest(t require.TestingT) { checkTx := false - suite.app = app.Setup(checkTx, nil) + suite.app = app.Setup(suite.T(), checkTx, nil) // consensus key priv, err := ethsecp256k1.GenerateKey() require.NoError(t, err) diff --git a/tests/solidity/init-test-node.sh b/tests/solidity/init-test-node.sh index 4093be2f..f6b51562 100755 --- a/tests/solidity/init-test-node.sh +++ b/tests/solidity/init-test-node.sh @@ -58,4 +58,4 @@ chibaclonkd collect-gentxs chibaclonkd validate-genesis # Start the node (remove the --pruning=nothing flag if historical queries are not needed) -chibaclonkd start --pruning=nothing --rpc.unsafe --keyring-backend test --log_level info --json-rpc.api eth,txpool,personal,net,debug,web3 --api.enable +chibaclonkd start --pruning=nothing --rpc.unsafe --keyring-backend test --log_level info --json-rpc.api eth,txpool,personal,net,debug,web3 --api.enable --mode validator