diff options
author | Valery Piashchynski <[email protected]> | 2020-12-14 20:56:12 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-14 20:56:12 +0300 |
commit | 1de811093883a6b78d51ee8cc792fbf2107e72c2 (patch) | |
tree | d6a525bd5973736b8ad89400ac9d834a41c8ec3e /plugins | |
parent | f2619a60e77d24326fbf5ebad1156611726df67e (diff) |
Update CI [windows support]
Diffstat (limited to 'plugins')
-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) { |