From c4d92bf4efa80e96908cb930637d355ec78294e6 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 27 Jan 2019 12:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=81=20Replace=20the=20data=20type=20of?= =?UTF-8?q?=20periodical=20duration=20with=20a=20constant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ants_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ants_test.go b/ants_test.go index 6d7729a..bcc6d63 100644 --- a/ants_test.go +++ b/ants_test.go @@ -251,7 +251,7 @@ func TestPurge(t *testing.T) { t.Fatalf("create TimingPool failed: %s", err.Error()) } p.Submit(demoFunc) - time.Sleep(5 * time.Second) + time.Sleep(ants.DefaultCleanIntervalTime * time.Second) if p.Running() != 0 { t.Error("all p should be purged") }