summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-12-14 20:56:12 +0300
committerValery Piashchynski <[email protected]>2020-12-14 20:56:12 +0300
commit1de811093883a6b78d51ee8cc792fbf2107e72c2 (patch)
treed6a525bd5973736b8ad89400ac9d834a41c8ec3e /plugins
parentf2619a60e77d24326fbf5ebad1156611726df67e (diff)
Update CI [windows support]
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/rpc/config_test.go7
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) {