summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-28 11:57:15 +0300
committerValery Piashchynski <[email protected]>2020-02-28 11:57:15 +0300
commit73f0346ab726e03833b8c5fd04258769d08dd8d4 (patch)
treee5706af88f6d643f8fd18bee7fe221088938c415
parent576f385fcffc836bed5bc156c9d4c1eb455905fb (diff)
Sleep times update
-rw-r--r--service/limit/service_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/limit/service_test.go b/service/limit/service_test.go
index 445f8822..bfea003f 100644
--- a/service/limit/service_test.go
+++ b/service/limit/service_test.go
@@ -82,7 +82,7 @@ func Test_Service_PidEcho(t *testing.T) {
}
}()
- time.Sleep(time.Second)
+ time.Sleep(time.Millisecond * 100)
req, err := http.NewRequest("GET", "http://localhost:6029", nil)
assert.NoError(t, err)
@@ -225,7 +225,7 @@ func Test_Service_ListenerPlusIdleTTL(t *testing.T) {
}()
- time.Sleep(time.Second)
+ time.Sleep(time.Millisecond * 100)
lastPID := getPID(s)
@@ -302,7 +302,7 @@ func Test_Service_Listener_MaxExecTTL(t *testing.T) {
}
}()
- time.Sleep(time.Second)
+ time.Sleep(time.Millisecond * 100)
req, err := http.NewRequest("GET", "http://localhost:6029", nil)
assert.NoError(t, err)
@@ -361,7 +361,7 @@ func Test_Service_Listener_MaxMemoryUsage(t *testing.T) {
}
}()
- time.Sleep(time.Second)
+ time.Sleep(time.Millisecond * 100)
lastPID := getPID(s)