mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-20 01:00:56 +00:00
Fix: pool gc test
This commit is contained in:
parent
df718971f1
commit
54f30ed13e
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue