summaryrefslogtreecommitdiff
path: root/pkg/pool
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-15 01:21:51 +0300
committerValery Piashchynski <[email protected]>2021-08-15 01:21:51 +0300
commitf6b08d78c145f362143596d33614b3351f987408 (patch)
tree6ad873f5022224d5d603603c0f69d38d7037452a /pkg/pool
parent3383860a5e8ae8ef59b7b552b2228d5327511ab6 (diff)
Timeout to prevent process is not ready error
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/pool')
-rw-r--r--pkg/pool/supervisor_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/pool/supervisor_test.go b/pkg/pool/supervisor_test.go
index 39d8abb1..21cf1db5 100644
--- a/pkg/pool/supervisor_test.go
+++ b/pkg/pool/supervisor_test.go
@@ -73,6 +73,8 @@ func TestSupervisedPool_ExecWithDebugMode(t *testing.T) {
assert.NoError(t, err)
assert.NotNil(t, p)
+ time.Sleep(time.Second)
+
for i := 0; i < 100; i++ {
time.Sleep(time.Millisecond * 100)
_, err = p.Exec(&payload.Payload{