Skip to content

Commit

Permalink
test: adding a test for consensus start
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Oct 6, 2023
1 parent 1ecbf33 commit 04b13a5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions consensus/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,14 @@ func (td *testData) makeProposal(t *testing.T, height uint32, round int16) *prop
return p
}

func TestStart(t *testing.T) {
td := setup(t)

td.consX.Start()
td.shouldPublishQueryProposal(t, td.consX, 1)
td.shouldPublishQueryVote(t, td.consX, 1, 0)
}

func TestNotInCommittee(t *testing.T) {
td := setup(t)

Expand Down

0 comments on commit 04b13a5

Please sign in to comment.