diff options
author | Wolfy-J <[email protected]> | 2018-09-23 15:12:19 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-23 15:12:19 +0300 |
commit | 1f079d9b681e65a412fb8b79f013862ff8f1c7db (patch) | |
tree | 8840f0e35184ef247e0c6f7343a9582eb5f06b97 /service/rpc/config_test.go | |
parent | 6b1e4462e4d664c0573faac00b8cb830e5c47a31 (diff) |
more coverage
Diffstat (limited to 'service/rpc/config_test.go')
-rw-r--r-- | service/rpc/config_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/service/rpc/config_test.go b/service/rpc/config_test.go index a7c51c0f..e5742a4c 100644 --- a/service/rpc/config_test.go +++ b/service/rpc/config_test.go @@ -128,3 +128,10 @@ func Test_Config_DialerErrorMethod(t *testing.T) { assert.Nil(t, ln) assert.Error(t, err) } + +func Test_Config_Defaults(t *testing.T) { + c := &Config{} + c.InitDefaults() + assert.Equal(t, true, c.Enable) + assert.Equal(t, "tcp://127.0.0.1:6001", c.Listen) +} |