From 94763266ad20fb1eadb57e796bfa7d27afe7de48 Mon Sep 17 00:00:00 2001
From: Andy Pan <panjf2000@gmail.com>
Date: Sat, 27 Jul 2019 11:14:01 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8BFix=20some=20minor=20mistakes=20in?=
 =?UTF-8?q?=20test=20cases?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ants_test.go | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/ants_test.go b/ants_test.go
index 8c2fa43..015969e 100644
--- a/ants_test.go
+++ b/ants_test.go
@@ -445,12 +445,12 @@ func TestRestCodeCoverage(t *testing.T) {
 	for i := 0; i < n; i++ {
 		pprem.Submit(demoFunc)
 	}
-	t.Logf("pool with pre-malloc, capacity:%d", pprem.Cap())
-	t.Logf("pool with pre-malloc, running workers number:%d", pprem.Running())
-	t.Logf("pool with pre-malloc, free workers number:%d", pprem.Free())
+	t.Logf("pre-malloc pool, capacity:%d", pprem.Cap())
+	t.Logf("pre-malloc pool, running workers number:%d", pprem.Running())
+	t.Logf("pre-malloc pool, free workers number:%d", pprem.Free())
 	pprem.Tune(TestSize)
 	pprem.Tune(TestSize / 10)
-	t.Logf("pool with pre-malloc, after tuning capacity, capacity:%d, running:%d", p0.Cap(), p0.Running())
+	t.Logf("pre-malloc pool, after tuning capacity, capacity:%d, running:%d", pprem.Cap(), pprem.Running())
 
 	p, _ := ants.NewPoolWithFunc(TestSize, demoPoolFunc)
 	defer p.Invoke(Param)
@@ -473,10 +473,11 @@ func TestRestCodeCoverage(t *testing.T) {
 		ppremWithFunc.Invoke(Param)
 	}
 	time.Sleep(ants.DEFAULT_CLEAN_INTERVAL_TIME * time.Second)
-	t.Logf("pool with func, capacity:%d", ppremWithFunc.Cap())
-	t.Logf("pool with func, running workers number:%d", ppremWithFunc.Running())
-	t.Logf("pool with func, free workers number:%d", ppremWithFunc.Free())
+	t.Logf("pre-malloc pool with func, capacity:%d", ppremWithFunc.Cap())
+	t.Logf("pre-malloc pool with func, running workers number:%d", ppremWithFunc.Running())
+	t.Logf("pre-malloc pool with func, free workers number:%d", ppremWithFunc.Free())
 	ppremWithFunc.Tune(TestSize)
 	ppremWithFunc.Tune(TestSize / 10)
-	t.Logf("pool with func, after tuning capacity, capacity:%d, running:%d", p.Cap(), p.Running())
+	t.Logf("pre-malloc pool with func, after tuning capacity, capacity:%d, running:%d", ppremWithFunc.Cap(),
+		ppremWithFunc.Running())
 }