Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielTavaresA committed Jun 30, 2024
1 parent 7f2634c commit bc3bc79
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ class GossipManagerSuite extends TestKit(ActorSystem("GossipManagerSuiteActorSys
// register server
for (peer <- peers) {
connectionMediatorRef ? ConnectionMediator.NewServerConnected(peer.ref, GreetServer(PublicKey(Base64Data("")), "", ""))
peer.receiveOne(duration)
}
checkPeersWritten(connectionMediatorRef)

Expand All @@ -317,7 +318,7 @@ class GossipManagerSuite extends TestKit(ActorSystem("GossipManagerSuiteActorSys
Await.result(output, duration)

// include rumor state
peers.map(_.receiveOne(duration)).count(_ != null) shouldBe 2
peers.map(_.receiveOne(duration)).count(_ != null) shouldBe 1

}

Expand All @@ -340,6 +341,7 @@ class GossipManagerSuite extends TestKit(ActorSystem("GossipManagerSuiteActorSys
var n = 0
for (peer <- peers) {
connectionMediatorRef ? ConnectionMediator.NewServerConnected(peer.ref, GreetServer(PublicKey(Base64Data.encode(s"$n")), "", ""))
peer.receiveOne(duration)
n += 1
}
checkPeersWritten(connectionMediatorRef)
Expand Down

0 comments on commit bc3bc79

Please sign in to comment.