[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:
deadprogram 2016-05-13 17:36:34 -07:00
parent 0276721523
commit aa20799d2a
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func TestEveryWhenDone(t *testing.T) {
done := Every(20*time.Millisecond, func() { done := Every(20*time.Millisecond, func() {
i++ i++
}) })
<-time.After(20 * time.Millisecond) <-time.After(10 * time.Millisecond)
done <- true done <- true
<-time.After(50 * time.Millisecond) <-time.After(50 * time.Millisecond)
if i > 1 { if i > 1 {