=rem #17556 Do not fail if identity or terminated arrives
Trying to stabilize RemoteNodeShutdownAndComesBackSpec which fails intermittently on the test servers by replacing an unecessary check with receiveWhile which does not fail if it times out.
This commit is contained in:
parent
590f819289
commit
97b83fb95b
1 changed files with 3 additions and 3 deletions
|
|
@ -118,9 +118,9 @@ abstract class RemoteNodeShutdownAndComesBackSpec
|
||||||
watch(subjectNew)
|
watch(subjectNew)
|
||||||
|
|
||||||
subjectNew ! "shutdown"
|
subjectNew ! "shutdown"
|
||||||
fishForMessage(5.seconds) {
|
// we are waiting for a Terminated here, but it is ok if it does not arrive
|
||||||
case _: ActorIdentity ⇒ false
|
receiveWhile(5.seconds) {
|
||||||
case Terminated(subjectNew) ⇒ true
|
case _: ActorIdentity ⇒ true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue