diff options
-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) |