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.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) {