Skip to content

Commit

Permalink
Fix consensus unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chengwenxi committed May 17, 2019
1 parent cea8d1f commit 16b552e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions consensus/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func testHandshakeReplay(t *testing.T, nBlocks int, mode uint) {
t.Fatalf("Error starting proxy app connections: %v", err)
}
defer proxyApp.Stop()
if err := handshaker.Handshake(proxyApp); err != nil {
if err := handshaker.Handshake(proxyApp, &config.BaseConfig); err != nil {
t.Fatalf("Error on abci handshake: %v", err)
}

Expand Down Expand Up @@ -624,6 +624,8 @@ func (bs *mockBlockStore) LoadSeenCommit(height int64) *types.Commit {
return bs.commits[height-1]
}

func (bs *mockBlockStore) RetreatLastBlock() {}

//----------------------------------------

func TestInitChainUpdateValidators(t *testing.T) {
Expand All @@ -646,7 +648,7 @@ func TestInitChainUpdateValidators(t *testing.T) {
t.Fatalf("Error starting proxy app connections: %v", err)
}
defer proxyApp.Stop()
if err := handshaker.Handshake(proxyApp); err != nil {
if err := handshaker.Handshake(proxyApp, &config.BaseConfig); err != nil {
t.Fatalf("Error on abci handshake: %v", err)
}

Expand Down

0 comments on commit 16b552e

Please sign in to comment.