From 10f9571c9e2d91d1eed28630b98b73637245b440 Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Mon, 21 Sep 2020 00:44:47 +0800 Subject: [PATCH] Fix: pool gc test --- component/pool/pool_test.go | 1 + 1 file changed, 1 insertion(+) 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()