cc3b2ff8e9
* server: update server and enable configurable tracer * config validation * fix import cycle * fix start * update fields * c++ * c++
15 lines
309 B
Go
15 lines
309 B
Go
package config
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
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.WsAddress, DefaultJSONRPCWsAddress)
|
|
}
|