diff options
Diffstat (limited to 'plugins/rpc/config_test.go')
-rwxr-xr-x | plugins/rpc/config_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/rpc/config_test.go b/plugins/rpc/config_test.go index 8b1d974a..67532bc8 100755 --- a/plugins/rpc/config_test.go +++ b/plugins/rpc/config_test.go @@ -1,6 +1,7 @@ package rpc import ( + "runtime" "testing" j "github.com/json-iterator/go" @@ -29,7 +30,11 @@ func TestConfig_Listener(t *testing.T) { }() assert.Equal(t, "tcp", ln.Addr().Network()) - assert.Equal(t, "0.0.0.0:18001", ln.Addr().String()) + if runtime.GOOS == "windows" { + assert.Equal(t, "[::]:18001", ln.Addr().String()) + } else { + assert.Equal(t, "0.0.0.0:18001", ln.Addr().String()) + } } func TestConfig_ListenerUnix(t *testing.T) { |