mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Fix: pool gc test
This commit is contained in:
parent
df718971f1
commit
54f30ed13e
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user