Skip to content

Commit 25ee0c1

Browse files
author
Dmitry Voronov
committed
More tests fixed
1 parent d0a0f95 commit 25ee0c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/scala/io/iohk/ethereum/blockchain/sync/regular/BlockFetcherStateSpec.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class BlockFetcherStateSpec
7575
.flatMap(_.tryInsertBlock(testBlock, peerId))
7676

7777
assert(result.map(_.waitingHeaders) === Right(Queue.empty))
78-
assert(result.map(_.readyBlocks) === Right(Queue.empty.enqueue(front :+ testBlock)))
78+
assert(result.map(_.readyBlocks) === Right(Queue.empty.enqueueAll(front :+ testBlock)))
7979
front.foreach { block =>
8080
assert(result.map(_.blockProviders(block.number)) === Right(peer))
8181
}
@@ -93,7 +93,7 @@ class BlockFetcherStateSpec
9393
.flatMap(_.tryInsertBlock(testBlock, peer))
9494

9595
assert(result.map(_.readyBlocks) === Right(Queue.empty))
96-
assert(result.map(_.waitingHeaders) === Right(Queue.empty.enqueue((front :+ testBlock).map(_.header))))
96+
assert(result.map(_.waitingHeaders) === Right(Queue.empty.enqueueAll((front :+ testBlock).map(_.header))))
9797
assert(result.map(_.knownTop) === Right(testBlock.number))
9898
}
9999

0 commit comments

Comments
 (0)