summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'static_pool_test.go')
-rw-r--r--static_pool_test.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index f5313f6b..f8ad4a4d 100644
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -345,7 +345,13 @@ func Test_Static_Pool_Destroy_And_Close_While_Wait(t *testing.T) {
assert.NotNil(t, p)
assert.NoError(t, err)
- go p.Exec(&Payload{Body: []byte("100")})
+ go func() {
+ _, err := p.Exec(&Payload{Body: []byte("100")})
+ if err != nil {
+ t.Errorf("error executing payload: error %v", err)
+ }
+
+ }()
time.Sleep(time.Millisecond * 10)
p.Destroy()