Fix: pool gc test
This commit is contained in:
parent
96a8259c42
commit
10f9571c9e
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user