@@ -35,7 +35,7 @@ func TestVoteMessageHandlerSuccessfullyGeneratedAndProcessQCForFistV2Round(t *te
35
35
currentRound , lockQuorumCert , highestQuorumCert , _ := engineV2 .GetProperties ()
36
36
// initialised with nil and 0 round
37
37
assert .Nil (t , lockQuorumCert )
38
- assert .Nil (t , highestQuorumCert )
38
+ assert .Equal (t , utils . Round ( 0 ), highestQuorumCert . ProposedBlockInfo . Round )
39
39
assert .Equal (t , utils .Round (1 ), currentRound )
40
40
voteMsg = & utils.Vote {
41
41
ProposedBlockInfo : blockInfo ,
@@ -46,7 +46,7 @@ func TestVoteMessageHandlerSuccessfullyGeneratedAndProcessQCForFistV2Round(t *te
46
46
currentRound , lockQuorumCert , highestQuorumCert , _ = engineV2 .GetProperties ()
47
47
// Still using the initlised value because we did not yet go to the next round
48
48
assert .Nil (t , lockQuorumCert )
49
- assert .Nil (t , highestQuorumCert )
49
+ assert .Equal (t , utils . Round ( 0 ), highestQuorumCert . ProposedBlockInfo . Round )
50
50
51
51
assert .Equal (t , utils .Round (1 ), currentRound )
52
52
@@ -63,7 +63,7 @@ func TestVoteMessageHandlerSuccessfullyGeneratedAndProcessQCForFistV2Round(t *te
63
63
assert .Equal (t , utils .Round (0 ), lockQuorumCert .ProposedBlockInfo .Round )
64
64
// The highestQC proposedBlockInfo shall be the same as the one from its votes
65
65
assert .Equal (t , highestQuorumCert .ProposedBlockInfo , voteMsg .ProposedBlockInfo )
66
- // Check round has now changed from 5 to 6
66
+ // Check round has now changed from 1 to 2
67
67
assert .Equal (t , utils .Round (2 ), currentRound )
68
68
}
69
69
@@ -90,7 +90,7 @@ func TestVoteMessageHandlerSuccessfullyGeneratedAndProcessQC(t *testing.T) {
90
90
currentRound , lockQuorumCert , highestQuorumCert , _ := engineV2 .GetProperties ()
91
91
// initialised with nil and 0 round
92
92
assert .Nil (t , lockQuorumCert )
93
- assert .Nil (t , highestQuorumCert )
93
+ assert .Equal (t , utils . Round ( 0 ), highestQuorumCert . ProposedBlockInfo . Round )
94
94
assert .Equal (t , utils .Round (5 ), currentRound )
95
95
voteMsg = & utils.Vote {
96
96
ProposedBlockInfo : blockInfo ,
@@ -101,7 +101,7 @@ func TestVoteMessageHandlerSuccessfullyGeneratedAndProcessQC(t *testing.T) {
101
101
currentRound , lockQuorumCert , highestQuorumCert , _ = engineV2 .GetProperties ()
102
102
// Still using the initlised value because we did not yet go to the next round
103
103
assert .Nil (t , lockQuorumCert )
104
- assert .Nil (t , highestQuorumCert )
104
+ assert .Equal (t , utils . Round ( 0 ), highestQuorumCert . ProposedBlockInfo . Round )
105
105
106
106
assert .Equal (t , utils .Round (5 ), currentRound )
107
107
@@ -176,7 +176,7 @@ func TestProcessVoteMsgThenTimeoutMsg(t *testing.T) {
176
176
currentRound , lockQuorumCert , highestQuorumCert , _ := engineV2 .GetProperties ()
177
177
// initialised with nil and 0 round
178
178
assert .Nil (t , lockQuorumCert )
179
- assert .Nil (t , highestQuorumCert )
179
+ assert .Equal (t , utils . Round ( 0 ), highestQuorumCert . ProposedBlockInfo . Round )
180
180
181
181
assert .Equal (t , utils .Round (5 ), currentRound )
182
182
voteMsg = & utils.Vote {
0 commit comments