wait 5 sec for a block on CircleCI
Fixes: ``` --- FAIL: TestHandshakeReplaySome (12.40s) replay_test.go:332: waited too long for tendermint to produce 6 blocks ```
This commit is contained in:
parent
5c58db3bb4
commit
b2385b46cf
|
@ -91,7 +91,7 @@ func WALWithNBlocks(numBlocks int) (data []byte, err error) {
|
|||
case <-numBlocksWritten:
|
||||
wr.Flush()
|
||||
return b.Bytes(), nil
|
||||
case <-time.After(time.Duration(2*numBlocks) * time.Second):
|
||||
case <-time.After(time.Duration(5*numBlocks) * time.Second):
|
||||
return b.Bytes(), fmt.Errorf("waited too long for tendermint to produce %d blocks", numBlocks)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue