summaryrefslogtreecommitdiff
path: root/pkg/pool
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-08-13 11:05:02 +0300
committerValery Piashchynski <[email protected]>2021-08-13 11:05:02 +0300
commite85855df8dffa82efdbaf8592701caf5512fb26b (patch)
treeab6619f15b8671259f63926879a6bf82bce0e691 /pkg/pool
parente17bb65ae70c47020eb40a798cf49f6e98ef3d5f (diff)
Add sleep timeout to the Test_StaticPool_JobError
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/pool')
-rwxr-xr-xpkg/pool/static_pool_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/pool/static_pool_test.go b/pkg/pool/static_pool_test.go
index 2ac2093d..b72b8c32 100755
--- a/pkg/pool/static_pool_test.go
+++ b/pkg/pool/static_pool_test.go
@@ -151,8 +151,9 @@ func Test_StaticPool_JobError(t *testing.T) {
assert.NoError(t, err)
assert.NotNil(t, p)
- res, err := p.Exec(&payload.Payload{Body: []byte("hello")})
+ time.Sleep(time.Second * 2)
+ res, err := p.Exec(&payload.Payload{Body: []byte("hello")})
assert.Error(t, err)
assert.Nil(t, res)