fix: fix the module unit test cases

This commit is contained in:
Sai Kumar 2022-05-16 21:14:14 +05:30
parent 49cd996e80
commit fd887f80bc
2 changed files with 4 additions and 4 deletions

View File

@ -185,7 +185,7 @@ func DefaultJSONRPCConfig() *JSONRPCConfig {
return &JSONRPCConfig{ return &JSONRPCConfig{
Enable: true, Enable: true,
API: GetDefaultAPINamespaces(), API: GetDefaultAPINamespaces(),
Address: DefaultJSONRPCAddress, // Address: DefaultJSONRPCAddress,
WsAddress: DefaultJSONRPCWsAddress, WsAddress: DefaultJSONRPCWsAddress,
GasCap: DefaultGasCap, GasCap: DefaultGasCap,
EVMTimeout: DefaultEVMTimeout, EVMTimeout: DefaultEVMTimeout,

View File

@ -9,6 +9,6 @@ import (
func TestDefaultConfig(t *testing.T) { func TestDefaultConfig(t *testing.T) {
cfg := DefaultConfig() cfg := DefaultConfig()
require.True(t, cfg.JSONRPC.Enable) 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) require.Equal(t, cfg.JSONRPC.WsAddress, DefaultJSONRPCWsAddress)
} }