summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-03 13:08:49 +0300
committerWolfy-J <[email protected]>2019-05-03 13:08:49 +0300
commit1e38f34d0d4bca699bd2025dddeb6c66587b3246 (patch)
tree5fff0a61ca85e35d08623ccb6e8148491d39aa3f /static_pool_test.go
parent457ec8eac0f5267e61871de87c3f4daa9f595be0 (diff)
testing watchers
Diffstat (limited to 'static_pool_test.go')
-rw-r--r--static_pool_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index b1a27990..a7e71fdb 100644
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -381,10 +381,11 @@ func Test_Static_Pool_Slow_Destroy(t *testing.T) {
DestroyTimeout: time.Second,
},
)
- p.Destroy()
- assert.NotNil(t, p)
assert.NoError(t, err)
+ assert.NotNil(t, p)
+
+ p.Destroy()
}
func Benchmark_Pool_Allocate(b *testing.B) {