diff --git a/component/pool/pool_test.go b/component/pool/pool_test.go index 844ef245..6fc8622d 100644 --- a/component/pool/pool_test.go +++ b/component/pool/pool_test.go @@ -84,6 +84,7 @@ func TestPool_AutoGC(t *testing.T) { elm, _ := pool.Get() assert.Equal(t, 0, elm.(int)) pool.Put(2) + pool = nil runtime.GC()