diff options
author | Valery Piashchynski <[email protected]> | 2019-11-17 18:13:15 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2019-11-17 18:13:15 +0300 |
commit | a7982f6e692e9dc40f035d5f1486cb2bbae71f88 (patch) | |
tree | ab4b32c190bc8bffd9b1b99b806e03192729c59a /static_pool_test.go | |
parent | c463235f55cdae5fa7c63a87e7cc73c6e535d27a (diff) |
finish the check
Diffstat (limited to 'static_pool_test.go')
-rw-r--r-- | static_pool_test.go | 8 |
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() |