update go test

This commit is contained in:
Andy Pan 2018-09-28 20:10:59 +08:00
parent 1dac82c4c5
commit 1f12f5a4d2
1 changed files with 1 additions and 1 deletions

View File

@ -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