summaryrefslogtreecommitdiff
path: root/socket_factory_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-28 17:18:54 +0300
committerValery Piashchynski <[email protected]>2020-02-28 17:18:54 +0300
commitb9099f59ef0a18b72ffe9ef2565a7eaefb3f1a2d (patch)
tree1d5021188028a19d57f35b535502e5d35d0827a6 /socket_factory_test.go
parent98e7eb98d057a9de8c13e53392f548ca6ed5f69b (diff)
Revert randomized by mistake ports
Diffstat (limited to 'socket_factory_test.go')
-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 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()