mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-10 05:50:19 +00:00
evidence: remove source of non-determinism from test
This commit is contained in:
@@ -394,11 +394,8 @@ func TestReactorBroadcastEvidence_Pending(t *testing.T) {
|
||||
require.Len(t, rts.pools, 2)
|
||||
assert.EqualValues(t, numEvidence, rts.pools[primary.NodeID].Size(),
|
||||
"primary node should have all the evidence")
|
||||
if assert.EqualValues(t, numEvidence, rts.pools[secondary.NodeID].Size(),
|
||||
"secondary nodes should have caught up") {
|
||||
|
||||
rts.assertEvidenceChannelsEmpty(t)
|
||||
}
|
||||
assert.EqualValues(t, numEvidence, rts.pools[secondary.NodeID].Size(),
|
||||
"secondary nodes should have caught up")
|
||||
}
|
||||
|
||||
func TestReactorBroadcastEvidence_Committed(t *testing.T) {
|
||||
@@ -450,11 +447,8 @@ func TestReactorBroadcastEvidence_Committed(t *testing.T) {
|
||||
require.Len(t, rts.pools, 2)
|
||||
assert.EqualValues(t, numEvidence, rts.pools[primary.NodeID].Size(),
|
||||
"primary node should have all the evidence")
|
||||
if assert.EqualValues(t, numEvidence/2, rts.pools[secondary.NodeID].Size(),
|
||||
"secondary nodes should have caught up") {
|
||||
|
||||
rts.assertEvidenceChannelsEmpty(t)
|
||||
}
|
||||
assert.EqualValues(t, numEvidence/2, rts.pools[secondary.NodeID].Size(),
|
||||
"secondary nodes should have caught up")
|
||||
}
|
||||
|
||||
func TestReactorBroadcastEvidence_FullyConnected(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user