summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-28 17:01:51 +0300
committerValery Piashchynski <[email protected]>2020-02-28 17:01:51 +0300
commit98e7eb98d057a9de8c13e53392f548ca6ed5f69b (patch)
tree427c8b1aa4ad60cca6d3974696b0e9076e40513b
parent4950276fef1b5d78d38933e5b9d5c9beaeef512c (diff)
socket_factory_test ports update
-rw-r--r--socket_factory_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/socket_factory_test.go b/socket_factory_test.go
index c15e720a..59cf5def 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:9007")
+ ls, err := net.Listen("tcp", "localhost:9008")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9009")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9010")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9011")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9012")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9013")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9014")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9015")
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:9007")
+ ls, err := net.Listen("tcp", "localhost:9016")
if err == nil {
defer func() {
err := ls.Close()