mirror of https://github.com/shunfei/cronsun
Fixed test TestLocalTimezone: test some time may fail due to goroutine scheduling uncertainly
parent
f3c2d16991
commit
d54e1b0bc0
|
@ -237,7 +237,7 @@ func TestLocalTimezone(t *testing.T) {
|
|||
defer cron.Stop()
|
||||
|
||||
select {
|
||||
case <-time.After(ONE_SECOND * 2):
|
||||
case <-time.After(ONE_SECOND * 3):
|
||||
t.FailNow()
|
||||
case <-wait(wg):
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue