diff options
author | Valery Piashchynski <[email protected]> | 2021-08-15 01:21:51 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-15 01:21:51 +0300 |
commit | f6b08d78c145f362143596d33614b3351f987408 (patch) | |
tree | 6ad873f5022224d5d603603c0f69d38d7037452a /pkg/pool | |
parent | 3383860a5e8ae8ef59b7b552b2228d5327511ab6 (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.go | 2 |
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{ |