cswal_light logs own votes; fix tests

This commit is contained in:
Ethan Buchman
2016-03-21 01:24:26 -04:00
parent 16208dc172
commit 922f720cf6
5 changed files with 14 additions and 10 deletions

View File

@ -80,19 +80,20 @@ func TestReplayCatchup(t *testing.T) {
// start timeout and receive routines
cs.startRoutines(0)
// cs.scheduleRound0(cs.Height)
// open wal and run catchup messages
openWAL(t, cs, name)
if err := cs.catchupReplay(cs.Height); err != nil {
t.Fatalf("Error on catchup replay %v", err)
}
after := time.After(time.Second * 2)
after := time.After(time.Second * 15)
select {
case <-newBlockCh:
case <-after:
t.Fatal("Timed out waiting for new block")
}
}
func openWAL(t *testing.T, cs *ConsensusState, file string) {