Skip to content

Commit e067254

Browse files
committed
make test deterministic be expecting all messages
1 parent 57a8231 commit e067254

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/scala/io/iohk/ethereum/blockchain/sync/SyncControllerSpec.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ class SyncControllerSpec extends FlatSpec with Matchers {
8181
)
8282
etcPeerManager.expectNoMsg()
8383

84-
peerMessageBus.expectMsg(Subscribe(MessageClassifier(Set(BlockHeaders.code), PeerSelector.WithId(peer2.id))))
85-
peerMessageBus.expectMsg(Subscribe(MessageClassifier(Set(NodeData.code), PeerSelector.WithId(peer1.id))))
84+
peerMessageBus.expectMsgAllOf(
85+
Subscribe(MessageClassifier(Set(BlockHeaders.code), PeerSelector.WithId(peer2.id))),
86+
Subscribe(MessageClassifier(Set(NodeData.code), PeerSelector.WithId(peer1.id)))
87+
)
8688
}
8789

8890
it should "download target block, request state, blocks and finish when downloaded" in new TestSetup() {

0 commit comments

Comments
 (0)