🍁 Replace the data type of periodical duration with a constant

This commit is contained in:
Andy Pan 2019-01-27 12:16:51 +08:00
parent 182c335275
commit c4d92bf4ef
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ func TestPurge(t *testing.T) {
t.Fatalf("create TimingPool failed: %s", err.Error()) t.Fatalf("create TimingPool failed: %s", err.Error())
} }
p.Submit(demoFunc) p.Submit(demoFunc)
time.Sleep(5 * time.Second) time.Sleep(ants.DefaultCleanIntervalTime * time.Second)
if p.Running() != 0 { if p.Running() != 0 {
t.Error("all p should be purged") t.Error("all p should be purged")
} }