diff options
Diffstat (limited to 'socket_factory_test.go')
-rw-r--r-- | socket_factory_test.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/socket_factory_test.go b/socket_factory_test.go index 59cf5def..c15e720a 100644 --- a/socket_factory_test.go +++ b/socket_factory_test.go @@ -43,7 +43,7 @@ func Test_Tcp_Start(t *testing.T) { func Test_Tcp_StartCloseFactory(t *testing.T) { time.Sleep(time.Millisecond * 10) // to ensure free socket - ls, err := net.Listen("tcp", "localhost:9008") + ls, err := net.Listen("tcp", "localhost:9007") if assert.NoError(t, err) { } else { t.Skip("socket is busy") @@ -76,7 +76,7 @@ func Test_Tcp_StartCloseFactory(t *testing.T) { func Test_Tcp_StartError(t *testing.T) { time.Sleep(time.Millisecond * 10) // to ensure free socket - ls, err := net.Listen("tcp", "localhost:9009") + ls, err := net.Listen("tcp", "localhost:9007") if assert.NoError(t, err) { defer func() { err := ls.Close() @@ -102,7 +102,7 @@ func Test_Tcp_StartError(t *testing.T) { func Test_Tcp_Failboot(t *testing.T) { time.Sleep(time.Millisecond * 10) // to ensure free socket - ls, err := net.Listen("tcp", "localhost:9010") + ls, err := net.Listen("tcp", "localhost:9007") if assert.NoError(t, err) { defer func() { err3 := ls.Close() @@ -125,7 +125,7 @@ func Test_Tcp_Failboot(t *testing.T) { func Test_Tcp_Timeout(t *testing.T) { time.Sleep(time.Millisecond * 10) // to ensure free socket - ls, err := net.Listen("tcp", "localhost:9011") + ls, err := net.Listen("tcp", "localhost:9007") if assert.NoError(t, err) { defer func() { err := ls.Close() @@ -148,7 +148,7 @@ func Test_Tcp_Timeout(t *testing.T) { func Test_Tcp_Invalid(t *testing.T) { time.Sleep(time.Millisecond * 10) // to ensure free socket - ls, err := net.Listen("tcp", "localhost:9012") + ls, err := net.Listen("tcp", "localhost:9007") if assert.NoError(t, err) { defer func() { err := ls.Close() @@ -170,7 +170,7 @@ func Test_Tcp_Invalid(t *testing.T) { func Test_Tcp_Broken(t *testing.T) { time.Sleep(time.Millisecond * 10) // to ensure free socket - ls, err := net.Listen("tcp", "localhost:9013") + ls, err := net.Listen("tcp", "localhost:9007") if assert.NoError(t, err) { defer func() { err := ls.Close() @@ -207,7 +207,7 @@ func Test_Tcp_Broken(t *testing.T) { func Test_Tcp_Echo(t *testing.T) { time.Sleep(time.Millisecond * 10) // to ensure free socket - ls, err := net.Listen("tcp", "localhost:9014") + ls, err := net.Listen("tcp", "localhost:9007") if assert.NoError(t, err) { defer func() { err := ls.Close() @@ -428,7 +428,7 @@ func Test_Unix_Echo(t *testing.T) { } func Benchmark_Tcp_SpawnWorker_Stop(b *testing.B) { - ls, err := net.Listen("tcp", "localhost:9015") + ls, err := net.Listen("tcp", "localhost:9007") if err == nil { defer func() { err := ls.Close() @@ -459,7 +459,7 @@ func Benchmark_Tcp_SpawnWorker_Stop(b *testing.B) { } func Benchmark_Tcp_Worker_ExecEcho(b *testing.B) { - ls, err := net.Listen("tcp", "localhost:9016") + ls, err := net.Listen("tcp", "localhost:9007") if err == nil { defer func() { err := ls.Close() |