Skip to content

Commit 7be749c

Browse files
committed
Fix a typo
1 parent 7cb924a commit 7be749c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/it/scala/io/iohk/ethereum/sync/RegularSyncItSpec.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,19 +122,19 @@ class RegularSyncItSpec extends FreeSpecBase with Matchers with BeforeAndAfterAl
122122
"peers should chose the branch with a checkpoint discarding blocks that come after the checkpoint" in customTestCaseResourceM(
123123
FakePeer.start2FakePeersRes()
124124
) { case (peer1, peer2) =>
125-
val lenght = 26
125+
val length = 26
126126
for {
127127
_ <- peer1.importBlocksUntil(20)(IdentityUpdate)
128128
_ <- peer2.importBlocksUntil(30)(IdentityUpdate)
129129
_ <- peer1.startRegularSync()
130130
_ <- peer2.startRegularSync()
131131
_ <- peer2.addCheckpointedBlock(peer2.bl.getBlockByNumber(25).get)
132-
_ <- peer2.waitForRegularSyncLoadLastBlock(lenght)
132+
_ <- peer2.waitForRegularSyncLoadLastBlock(length)
133133
_ <- peer1.connectToPeers(Set(peer2.node))
134-
_ <- peer1.waitForRegularSyncLoadLastBlock(lenght)
134+
_ <- peer1.waitForRegularSyncLoadLastBlock(length)
135135
} yield {
136136
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)
138138
assert(peer1.bl.getLatestCheckpointBlockNumber() == peer2.bl.getLatestCheckpointBlockNumber())
139139
}
140140
}

0 commit comments

Comments
 (0)