From b2385b46cf3147fae0c74221ba764d40d76f967a Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 11 Dec 2017 16:22:27 -0600 Subject: [PATCH] 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 ``` --- consensus/wal_generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/wal_generator.go b/consensus/wal_generator.go index 6f8bb8df3..c43e7c635 100644 --- a/consensus/wal_generator.go +++ b/consensus/wal_generator.go @@ -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) } }