From cc81c9573fc2e83201f5eebdfab04fb58c3f485f Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 15 Jul 2018 20:51:14 +0800 Subject: [PATCH] update --- ants_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ants_test.go b/ants_test.go index 2b8dcb9..44f013e 100644 --- a/ants_test.go +++ b/ants_test.go @@ -43,7 +43,7 @@ func TestAntsPoolWithFunc(t *testing.T) { for i := 0; i < n; i++ { wg.Add(1) - p.Serve(n) + p.Serve(Param) } wg.Wait() @@ -98,7 +98,7 @@ func TestCodeCov(t *testing.T) { p, _ := ants.NewPoolWithFunc(AntsSize, demoPoolFunc) defer p.Release() for i := 0; i < n; i++ { - p.Serve(n) + p.Serve(Param) } t.Logf("pool with func, capacity:%d", p.Cap()) t.Logf("pool with func, running workers number:%d", p.Running())