mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-25 10:41:41 +00:00
give test more time
This commit is contained in:
@ -29,11 +29,11 @@ func TestRepeat(t *testing.T) {
|
|||||||
// tock consumes Ticker.Chan() events `cnt` times.
|
// tock consumes Ticker.Chan() events `cnt` times.
|
||||||
tock := func(t *testing.T, rt *RepeatTimer, cnt int) {
|
tock := func(t *testing.T, rt *RepeatTimer, cnt int) {
|
||||||
for i := 0; i < cnt; i++ {
|
for i := 0; i < cnt; i++ {
|
||||||
timeout := time.After(time.Second * 2)
|
timeout := time.After(time.Second * 10)
|
||||||
select {
|
select {
|
||||||
case <-rt.Chan():
|
case <-rt.Chan():
|
||||||
case <-timeout:
|
case <-timeout:
|
||||||
t.Fatal("expected RepeatTimer to fire")
|
panic("expected RepeatTimer to fire")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
done := true
|
done := true
|
||||||
|
Reference in New Issue
Block a user