crank consensus timeout parameters for tests (see #236)

This commit is contained in:
Ethan Buchman
2016-07-12 14:08:59 -04:00
parent f44336d57d
commit 54357bcf8f
2 changed files with 9 additions and 7 deletions

View File

@@ -554,6 +554,8 @@ func TestLockPOLRelock(t *testing.T) {
// now either we go to PrevoteWait or Precommit
select {
case <-timeoutWaitCh: // we're in PrevoteWait, go to Precommit
// XXX: there's no guarantee we see the polka, this might be a precommit for nil,
// in which case the test fails!
<-voteCh
case <-voteCh: // we went straight to Precommit
}