fix: fix the cli test cases for modules

This commit is contained in:
Sai Kumar
2022-04-29 09:50:27 +05:30
parent 752fb3944f
commit 760cddf698
7 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ import (
func TestIntegrationTestSuite(t *testing.T) {
cfg := network.DefaultConfig()
cfg.NumValidators = 1
cfg.NumValidators = 2
suite.Run(t, NewIntegrationTestSuite(cfg))
}
-5
View File
@@ -62,11 +62,6 @@ func (s *IntegrationTestSuite) createAccountWithBalance(accountName string, acco
info, _, err := val.ClientCtx.Keyring.NewMnemonic(accountName, keyring.English, sdk.FullFundraiserPath, keyring.DefaultBIP39Passphrase, hd.EthSecp256k1)
sr.NoError(err)
pubKey, err := info.GetPubKey()
sr.NoError(err)
val.ClientCtx.Keyring.SaveOfflineKey(accountName, pubKey)
newAddr, _ := info.GetAddress()
_, err = banktestutil.MsgSendExec(
val.ClientCtx,
+1 -1
View File
@@ -9,6 +9,6 @@ import (
func TestIntegrationTestSuite(t *testing.T) {
cfg := network.DefaultConfig()
cfg.NumValidators = 1
cfg.NumValidators = 2
suite.Run(t, NewIntegrationTestSuite(cfg))
}
+2 -2
View File
@@ -175,7 +175,7 @@ func (s *IntegrationTestSuite) TestGetQueryBondById() {
{
"invalid bond id",
[]string{
fmt.Sprint("not_found_bond_id"),
"not_found_bond_id",
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
},
true,
@@ -246,7 +246,7 @@ func (s *IntegrationTestSuite) TestGetQueryBondListsByOwner() {
{
"invalid owner address",
[]string{
fmt.Sprint("not_found_bond_id"),
"not_found_bond_id",
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
},
true,
+3 -2
View File
@@ -1,13 +1,14 @@
package testutil
import (
"testing"
"github.com/stretchr/testify/suite"
"github.com/tharsis/ethermint/testutil/network"
"testing"
)
func TestIntegrationTestSuite(t *testing.T) {
cfg := network.DefaultConfig()
cfg.NumValidators = 1
cfg.NumValidators = 2
suite.Run(t, NewIntegrationTestSuite(cfg))
}