Fix: pool gc test

This commit is contained in:
Dreamacro 2020-09-21 00:44:47 +08:00
parent 96a8259c42
commit 10f9571c9e

View file

@ -84,6 +84,7 @@ func TestPool_AutoGC(t *testing.T) {
elm, _ := pool.Get() elm, _ := pool.Get()
assert.Equal(t, 0, elm.(int)) assert.Equal(t, 0, elm.(int))
pool.Put(2) pool.Put(2)
pool = nil
runtime.GC() runtime.GC()