Skip to content

Commit f372cc7

Browse files
committed
randomwalk test fix
1 parent bf286da commit f372cc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/scala/scorex/crypto/authds/avltree/batch/BatchAVLProver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class BatchAVLProver[D <: Digest, HF <: CryptographicHash[D]](val keyLength: Int
355355
/**
356356
*
357357
* @param rand - source of randomness
358-
* @return Random leaf from the tree, that is not positive or negative infinity
358+
* @return Random leaf from the tree that is not positive or negative infinity
359359
*/
360360
def randomWalk(rand: Random = new Random): Option[(ADKey, ADValue)] = {
361361
def internalNodeFn(r: InternalProverNode[D], dummy: Unit.type) =

src/test/scala/scorex/crypto/authds/avltree/batch/AVLBatchSpecification.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ class AVLBatchSpecification extends PropSpec with GeneratorDrivenPropertyChecks
172172
forAll { seed: Long =>
173173
val e1 = prover.randomWalk(new scala.util.Random(seed))
174174
val e2 = prover.randomWalk(new scala.util.Random(seed))
175-
e1.get._1 shouldEqual e2.get._1
176-
e1.get._2 shouldEqual e2.get._2
175+
e1.map(_._1) shouldEqual e2.map(_._1)
176+
e1.map(_._2) shouldEqual e2.map(_._2)
177177
}
178178
}
179179

0 commit comments

Comments
 (0)