[core] Don't cut it so close when testing Every being told to be done
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
0276721523
commit
aa20799d2a
|
@ -29,7 +29,7 @@ func TestEveryWhenDone(t *testing.T) {
|
|||
done := Every(20*time.Millisecond, func() {
|
||||
i++
|
||||
})
|
||||
<-time.After(20 * time.Millisecond)
|
||||
<-time.After(10 * time.Millisecond)
|
||||
done <- true
|
||||
<-time.After(50 * time.Millisecond)
|
||||
if i > 1 {
|
||||
|
|
Loading…
Reference in New Issue