forked from mirror/ants
update go test
This commit is contained in:
parent
1dac82c4c5
commit
1f12f5a4d2
|
@ -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…
Reference in New Issue