Skip to content

Commit 7c34c67

Browse files
committed
rework test
1 parent 642d408 commit 7c34c67

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

remote/src/test/scala/org/apache/pekko/remote/artery/HarmlessQuarantineSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ class HarmlessQuarantineSpec extends ArteryMultiNodeSpec("""
7777
association.associationState.isQuarantined(remoteUid) shouldBe true
7878
association.associationState.quarantinedButHarmless(remoteUid) shouldBe false
7979

80+
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
8081
eventually {
81-
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
8282
expectMsgType[ThisActorSystemQuarantinedEvent] // this is what remote emits when it learns it is quarantined by local
8383
}
8484
}
@@ -104,8 +104,8 @@ class HarmlessQuarantineSpec extends ArteryMultiNodeSpec("""
104104
association.associationState.isQuarantined(remoteUid) shouldBe true
105105
association.associationState.quarantinedButHarmless(remoteUid) shouldBe true
106106

107+
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
107108
eventually {
108-
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
109109
expectNoMessage()
110110
}
111111
}

remote/src/test/scala/org/apache/pekko/remote/artery/OutboundIdleShutdownSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ class OutboundIdleShutdownSpec extends ArteryMultiNodeSpec("""
173173
association.associationState.isQuarantined(remoteUid) shouldBe true
174174
association.associationState.quarantinedButHarmless(remoteUid) shouldBe false
175175

176+
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
176177
eventually {
177-
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
178178
expectMsgType[ThisActorSystemQuarantinedEvent] // this is what remote emits when it learns it is quarantined by local
179179
}
180180
}
@@ -200,8 +200,8 @@ class OutboundIdleShutdownSpec extends ArteryMultiNodeSpec("""
200200
association.associationState.isQuarantined(remoteUid) shouldBe true
201201
association.associationState.quarantinedButHarmless(remoteUid) shouldBe true
202202

203+
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
203204
eventually {
204-
remoteEcho.tell("ping", localEchoRef) // trigger sending message from remote to local, which will trigger local to wrongfully notify remote that it is quarantined
205205
expectMsgType[ThisActorSystemQuarantinedEvent] // this is what remote emits when it learns it is quarantined by local
206206
}
207207
}

0 commit comments

Comments
 (0)