Browse Source

revert change from #1721

makes TestListener never quit
pull/1782/head
Liamsi 6 years ago
parent
commit
6677f81ffb
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      consensus/wal_generator.go

+ 1
- 2
consensus/wal_generator.go View File

@ -92,11 +92,10 @@ func WALWithNBlocks(numBlocks int) (data []byte, err error) {
select {
case <-numBlocksWritten:
consensusState.Stop()
wr.Flush()
return b.Bytes(), nil
case <-time.After(1 * time.Minute):
consensusState.Stop()
wr.Flush()
return []byte{}, fmt.Errorf("waited too long for tendermint to produce %d blocks (grep logs for `wal_generator`)", numBlocks)
}
}


Loading…
Cancel
Save