summaryrefslogtreecommitdiff
path: root/server_config_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-06 16:07:30 +0300
committerWolfy-J <[email protected]>2018-06-06 16:07:30 +0300
commitf688b45aa74378287d12a8a0197aebbb7b5499c9 (patch)
tree5c451d33521e6b1dedf9f7e71464ad7dd726bf9c /server_config_test.go
parent901ba75678c77c4789ee934499d3926e6f5e21e3 (diff)
better server re-configuration
Diffstat (limited to 'server_config_test.go')
-rw-r--r--server_config_test.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/server_config_test.go b/server_config_test.go
index fdd502c2..ba226b00 100644
--- a/server_config_test.go
+++ b/server_config_test.go
@@ -24,7 +24,7 @@ func Test_ServerConfig_PipeFactory(t *testing.T) {
}
func Test_ServerConfig_SocketFactory(t *testing.T) {
- cfg := &ServerConfig{Relay: "tcp://:9000"}
+ cfg := &ServerConfig{Relay: "tcp://:9111"}
f, err := cfg.makeFactory()
defer f.Close()
@@ -33,14 +33,15 @@ func Test_ServerConfig_SocketFactory(t *testing.T) {
assert.Equal(t, "tcp", f.(*SocketFactory).ls.Addr().Network(), )
assert.Equal(t, "[::]:9000", f.(*SocketFactory).ls.Addr().String())
- cfg = &ServerConfig{Relay: "tcp://localhost:9000"}
+ cfg = &ServerConfig{Relay: "tcp://localhost:9111"}
f, err = cfg.makeFactory()
+ assert.NoError(t, err)
defer f.Close()
assert.NoError(t, err)
assert.IsType(t, &SocketFactory{}, f)
assert.Equal(t, "tcp", f.(*SocketFactory).ls.Addr().Network())
- assert.Equal(t, "127.0.0.1:9000", f.(*SocketFactory).ls.Addr().String())
+ assert.Equal(t, "127.0.0.1:9111", f.(*SocketFactory).ls.Addr().String())
}
func Test_ServerConfig_UnixSocketFactory(t *testing.T) {