diff options
author | Wolfy-J <[email protected]> | 2018-06-06 16:08:14 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-06 16:08:14 +0300 |
commit | c6b6ab10830c47e4e4e82cec88dd03e79e254a6f (patch) | |
tree | e41a3bf8278f7378081d3b2e32df849e7c854edc | |
parent | f688b45aa74378287d12a8a0197aebbb7b5499c9 (diff) |
fixing tests
-rw-r--r-- | server_config_test.go | 2 | ||||
-rw-r--r-- | socket_factory_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server_config_test.go b/server_config_test.go index ba226b00..ebdbcac4 100644 --- a/server_config_test.go +++ b/server_config_test.go @@ -31,7 +31,7 @@ func Test_ServerConfig_SocketFactory(t *testing.T) { assert.NoError(t, err) assert.IsType(t, &SocketFactory{}, f) assert.Equal(t, "tcp", f.(*SocketFactory).ls.Addr().Network(), ) - assert.Equal(t, "[::]:9000", f.(*SocketFactory).ls.Addr().String()) + assert.Equal(t, "[::]:9111", f.(*SocketFactory).ls.Addr().String()) cfg = &ServerConfig{Relay: "tcp://localhost:9111"} f, err = cfg.makeFactory() diff --git a/socket_factory_test.go b/socket_factory_test.go index f6b1350c..214a4851 100644 --- a/socket_factory_test.go +++ b/socket_factory_test.go @@ -373,7 +373,7 @@ func Benchmark_Tcp_Worker_ExecEcho(b *testing.B) { } func Benchmark_Unix_SpawnWorker_Stop(b *testing.B) { - if runtime.GOOS == "windows" || runtime.GOOS == "darwin" { + if runtime.GOOS == "windows" { b.Skip("not supported on " + runtime.GOOS) } @@ -400,7 +400,7 @@ func Benchmark_Unix_SpawnWorker_Stop(b *testing.B) { } func Benchmark_Unix_Worker_ExecEcho(b *testing.B) { - if runtime.GOOS == "windows" || runtime.GOOS == "darwin" { + if runtime.GOOS == "windows" { b.Skip("not supported on " + runtime.GOOS) } |