Merge pull request #962 from tendermint/wait-a-little-longet-on-ci

wait 5 sec for a block on CircleCI
This commit is contained in:
Ethan Buchman
2017-12-11 21:54:57 -05:00
committed by GitHub

View File

@@ -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)
}
}