Fix: pool gc test
This commit is contained in:
parent
96a8259c42
commit
10f9571c9e
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue