diff options
author | Valery Piashchynski <[email protected]> | 2020-02-27 23:23:55 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-27 23:23:55 +0300 |
commit | f11a2c4cdbacf2a6757607e551c75c190268ce97 (patch) | |
tree | 82e18aa5af59a88a45ec5590a621e22a0b968f57 /static_pool_test.go | |
parent | 8e161e73bb6d0852bc5b84f952435fa63bbb8403 (diff) |
NPE in Test_StaticPool_AllocateTimeout
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() |