summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2019-11-17 18:13:15 +0300
committerValery Piashchynski <[email protected]>2019-11-17 18:13:15 +0300
commita7982f6e692e9dc40f035d5f1486cb2bbae71f88 (patch)
treeab4b32c190bc8bffd9b1b99b806e03192729c59a /static_pool_test.go
parentc463235f55cdae5fa7c63a87e7cc73c6e535d27a (diff)
finish the check
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()