File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/it/scala/io/iohk/ethereum/sync Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -122,19 +122,19 @@ class RegularSyncItSpec extends FreeSpecBase with Matchers with BeforeAndAfterAl
122
122
" peers should chose the branch with a checkpoint discarding blocks that come after the checkpoint" in customTestCaseResourceM(
123
123
FakePeer .start2FakePeersRes()
124
124
) { case (peer1, peer2) =>
125
- val lenght = 26
125
+ val length = 26
126
126
for {
127
127
_ <- peer1.importBlocksUntil(20 )(IdentityUpdate )
128
128
_ <- peer2.importBlocksUntil(30 )(IdentityUpdate )
129
129
_ <- peer1.startRegularSync()
130
130
_ <- peer2.startRegularSync()
131
131
_ <- peer2.addCheckpointedBlock(peer2.bl.getBlockByNumber(25 ).get)
132
- _ <- peer2.waitForRegularSyncLoadLastBlock(lenght )
132
+ _ <- peer2.waitForRegularSyncLoadLastBlock(length )
133
133
_ <- peer1.connectToPeers(Set (peer2.node))
134
- _ <- peer1.waitForRegularSyncLoadLastBlock(lenght )
134
+ _ <- peer1.waitForRegularSyncLoadLastBlock(length )
135
135
} yield {
136
136
assert(peer1.bl.getBestBlock().get.hash == peer2.bl.getBestBlock().get.hash)
137
- assert(peer1.bl.getBestBlock().get.number == peer2.bl.getBestBlock().get.number && peer1.bl.getBestBlock().get.number == lenght )
137
+ assert(peer1.bl.getBestBlock().get.number == peer2.bl.getBestBlock().get.number && peer1.bl.getBestBlock().get.number == length )
138
138
assert(peer1.bl.getLatestCheckpointBlockNumber() == peer2.bl.getLatestCheckpointBlockNumber())
139
139
}
140
140
}
You can’t perform that action at this time.
0 commit comments