From f705908614533dcad7596306dafad4a762e2efba Mon Sep 17 00:00:00 2001 From: Sai Kumar Date: Tue, 17 May 2022 07:20:21 +0530 Subject: [PATCH] fix : fix the unit test for modules --- server/config/config.go | 6 +++--- server/config/config_test.go | 2 +- x/auction/client/testutil/cli_test.go | 2 +- x/bond/client/testutil/cli_test.go | 2 +- x/nameservice/client/testutil/cli_test.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/config/config.go b/server/config/config.go index 18647420..023e5a62 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -183,9 +183,9 @@ func GetAPINamespaces() []string { // DefaultJSONRPCConfig returns an EVM config with the JSON-RPC API enabled by default func DefaultJSONRPCConfig() *JSONRPCConfig { return &JSONRPCConfig{ - Enable: true, - API: GetDefaultAPINamespaces(), - // Address: DefaultJSONRPCAddress, + Enable: true, + API: GetDefaultAPINamespaces(), + Address: DefaultJSONRPCAddress, WsAddress: DefaultJSONRPCWsAddress, GasCap: DefaultGasCap, EVMTimeout: DefaultEVMTimeout, diff --git a/server/config/config_test.go b/server/config/config_test.go index 557224c1..9a19e3e9 100644 --- a/server/config/config_test.go +++ b/server/config/config_test.go @@ -9,6 +9,6 @@ import ( func TestDefaultConfig(t *testing.T) { cfg := DefaultConfig() require.True(t, cfg.JSONRPC.Enable) - // require.Equal(t, cfg.JSONRPC.Address, DefaultJSONRPCAddress) + require.Equal(t, cfg.JSONRPC.Address, DefaultJSONRPCAddress) require.Equal(t, cfg.JSONRPC.WsAddress, DefaultJSONRPCWsAddress) } diff --git a/x/auction/client/testutil/cli_test.go b/x/auction/client/testutil/cli_test.go index 51ff27df..6b027215 100644 --- a/x/auction/client/testutil/cli_test.go +++ b/x/auction/client/testutil/cli_test.go @@ -10,7 +10,7 @@ import ( func TestIntegrationTestSuite(t *testing.T) { cfg := network.DefaultConfig() - cfg.NumValidators = 2 + cfg.NumValidators = 1 suite.Run(t, NewIntegrationTestSuite(cfg)) } diff --git a/x/bond/client/testutil/cli_test.go b/x/bond/client/testutil/cli_test.go index 7c53f915..26939954 100644 --- a/x/bond/client/testutil/cli_test.go +++ b/x/bond/client/testutil/cli_test.go @@ -9,6 +9,6 @@ import ( func TestIntegrationTestSuite(t *testing.T) { cfg := network.DefaultConfig() - cfg.NumValidators = 2 + cfg.NumValidators = 1 suite.Run(t, NewIntegrationTestSuite(cfg)) } diff --git a/x/nameservice/client/testutil/cli_test.go b/x/nameservice/client/testutil/cli_test.go index 7c53f915..26939954 100644 --- a/x/nameservice/client/testutil/cli_test.go +++ b/x/nameservice/client/testutil/cli_test.go @@ -9,6 +9,6 @@ import ( func TestIntegrationTestSuite(t *testing.T) { cfg := network.DefaultConfig() - cfg.NumValidators = 2 + cfg.NumValidators = 1 suite.Run(t, NewIntegrationTestSuite(cfg)) }