diff options
Diffstat (limited to 'static_pool_test.go')
-rw-r--r-- | static_pool_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/static_pool_test.go b/static_pool_test.go index 1f185f58..ccf69596 100644 --- a/static_pool_test.go +++ b/static_pool_test.go @@ -238,7 +238,9 @@ func Test_StaticPool_AllocateTimeout(t *testing.T) { _, err = p.Exec(&Payload{Body: []byte("10")}) assert.Error(t, err) - assert.Contains(t, err.Error(), "worker timeout") + if err != nil { + assert.Contains(t, err.Error(), "worker timeout") + } <-done p.Destroy() |