From 4ae3fb8dc413492862469027bb58cb45b77338f1 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 23 Feb 2019 00:46:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=86=20Code=20coverage=20improvement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ants_test.go b/ants_test.go index c46223e..f8ac1bb 100644 --- a/ants_test.go +++ b/ants_test.go @@ -287,7 +287,7 @@ func TestRestCodeCoverage(t *testing.T) { t.Logf("pool, running workers number:%d", p0.Running()) t.Logf("pool, free workers number:%d", p0.Free()) p0.Tune(TestSize) - p0.Tune(AntsSize) + p0.Tune(TestSize / 10) t.Logf("pool, after tuning capacity, capacity:%d, running:%d", p0.Cap(), p0.Running()) p, _ := ants.NewPoolWithFunc(TestSize, demoPoolFunc) @@ -301,6 +301,6 @@ func TestRestCodeCoverage(t *testing.T) { t.Logf("pool with func, running workers number:%d", p.Running()) t.Logf("pool with func, free workers number:%d", p.Free()) p.Tune(TestSize) - p.Tune(AntsSize) + p.Tune(TestSize / 10) t.Logf("pool with func, after tuning capacity, capacity:%d, running:%d", p.Cap(), p.Running()) }