summaryrefslogtreecommitdiff
path: root/pkg/pool/supervisor_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-14 23:56:56 +0300
committerValery Piashchynski <[email protected]>2021-08-14 23:56:56 +0300
commit3383860a5e8ae8ef59b7b552b2228d5327511ab6 (patch)
treee3cebc99591ed11069a3f3889d43cac59b26702f /pkg/pool/supervisor_test.go
parent891df1a8c8db3d61ce7f4e9ba77076369a9a9ce3 (diff)
Kill worker instead of stop while error occured.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/pool/supervisor_test.go')
-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 0702a71f..39d8abb1 100644
--- a/pkg/pool/supervisor_test.go
+++ b/pkg/pool/supervisor_test.go
@@ -39,6 +39,8 @@ func TestSupervisedPool_Exec(t *testing.T) {
assert.NoError(t, err)
assert.NotNil(t, p)
+ time.Sleep(time.Second)
+
pidBefore := p.Workers()[0].Pid()
for i := 0; i < 100; i++ {