diff options
author | Valery Piashchynski <[email protected]> | 2021-08-13 11:05:02 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-13 11:05:02 +0300 |
commit | e85855df8dffa82efdbaf8592701caf5512fb26b (patch) | |
tree | ab6619f15b8671259f63926879a6bf82bce0e691 /pkg/pool | |
parent | e17bb65ae70c47020eb40a798cf49f6e98ef3d5f (diff) |
Add sleep timeout to the Test_StaticPool_JobError
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg/pool')
-rwxr-xr-x | pkg/pool/static_pool_test.go | 3 |
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) |