Skip to content

Commit e4f2748

Browse files
samliokyacovm
andauthored
BasicReplicationTest nits (#277)
* replication nit * update --------- Co-authored-by: yacovm <[email protected]>
1 parent 430fbb5 commit e4f2748

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

replication_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,10 @@ func testReplication(t *testing.T, startSeq uint64, nodes []simplex.NodeID) {
6767
// all blocks except the lagging node start at round startSeq, seq startSeq.
6868
// lagging node starts at round 0, seq 0.
6969
// this asserts that the lagging node catches up to the latest round
70-
for i := 0; i <= int(startSeq); i++ {
71-
for _, n := range net.Instances {
72-
n.Storage.WaitForBlockCommit(uint64(startSeq))
73-
}
70+
for _, n := range net.Instances {
71+
n.Storage.WaitForBlockCommit(startSeq)
7472
}
73+
assertEqualLedgers(t, net)
7574
}
7675

7776
// TestReplicationAdversarialNode tests the replication process of a node that

0 commit comments

Comments
 (0)