mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
update go test
This commit is contained in:
commit
f52474a42a
@ -52,7 +52,7 @@ func TestAntsPoolWithFunc(t *testing.T) {
|
|||||||
mem := runtime.MemStats{}
|
mem := runtime.MemStats{}
|
||||||
runtime.ReadMemStats(&mem)
|
runtime.ReadMemStats(&mem)
|
||||||
curMem = mem.TotalAlloc / MiB - curMem
|
curMem = mem.TotalAlloc / MiB - curMem
|
||||||
t.Logf("memory usage:%d", curMem)
|
t.Logf("memory usage:%d MB", curMem)
|
||||||
}
|
}
|
||||||
func TestNoPool(t *testing.T) {
|
func TestNoPool(t *testing.T) {
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user