fix : fix the unit test for modules
This commit is contained in:
parent
fd887f80bc
commit
f705908614
@ -183,9 +183,9 @@ func GetAPINamespaces() []string {
|
|||||||
// DefaultJSONRPCConfig returns an EVM config with the JSON-RPC API enabled by default
|
// DefaultJSONRPCConfig returns an EVM config with the JSON-RPC API enabled by default
|
||||||
func DefaultJSONRPCConfig() *JSONRPCConfig {
|
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,
|
||||||
|
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
func TestIntegrationTestSuite(t *testing.T) {
|
func TestIntegrationTestSuite(t *testing.T) {
|
||||||
cfg := network.DefaultConfig()
|
cfg := network.DefaultConfig()
|
||||||
cfg.NumValidators = 2
|
cfg.NumValidators = 1
|
||||||
|
|
||||||
suite.Run(t, NewIntegrationTestSuite(cfg))
|
suite.Run(t, NewIntegrationTestSuite(cfg))
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,6 @@ import (
|
|||||||
|
|
||||||
func TestIntegrationTestSuite(t *testing.T) {
|
func TestIntegrationTestSuite(t *testing.T) {
|
||||||
cfg := network.DefaultConfig()
|
cfg := network.DefaultConfig()
|
||||||
cfg.NumValidators = 2
|
cfg.NumValidators = 1
|
||||||
suite.Run(t, NewIntegrationTestSuite(cfg))
|
suite.Run(t, NewIntegrationTestSuite(cfg))
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,6 @@ import (
|
|||||||
|
|
||||||
func TestIntegrationTestSuite(t *testing.T) {
|
func TestIntegrationTestSuite(t *testing.T) {
|
||||||
cfg := network.DefaultConfig()
|
cfg := network.DefaultConfig()
|
||||||
cfg.NumValidators = 2
|
cfg.NumValidators = 1
|
||||||
suite.Run(t, NewIntegrationTestSuite(cfg))
|
suite.Run(t, NewIntegrationTestSuite(cfg))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user