mirror of https://github.com/panjf2000/ants.git
🍁 Replace the data type of periodical duration with a constant
This commit is contained in:
parent
182c335275
commit
c4d92bf4ef
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue