mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-20 09:00:04 +08:00
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()
|
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 New Issue
Block a user