Fix SurviveNetworkInstabilitySpec (#27383)

This commit is contained in:
Christopher Batey 2019-07-19 15:27:08 +01:00 committed by Helena Edelson
parent 950ec71294
commit 69fd98a39d

View file

@ -287,7 +287,7 @@ abstract class SurviveNetworkInstabilitySpec
system.actorOf(Props[Watcher], "watcher") system.actorOf(Props[Watcher], "watcher")
// undelivered system messages in RemoteChild on third should trigger QuarantinedEvent // undelivered system messages in RemoteChild on third should trigger QuarantinedEvent
system.eventStream.subscribe(testActor, classOf[QuarantinedEvent]) system.eventStream.subscribe(testActor, quarantinedEventClass)
} }
enterBarrier("watcher-created") enterBarrier("watcher-created")
@ -312,7 +312,7 @@ abstract class SurviveNetworkInstabilitySpec
within(10.seconds) { within(10.seconds) {
quarantinedEventFrom(expectMsgClass(quarantinedEventClass)) should ===(address(second)) quarantinedEventFrom(expectMsgClass(quarantinedEventClass)) should ===(address(second))
} }
system.eventStream.unsubscribe(testActor, classOf[QuarantinedEvent]) system.eventStream.unsubscribe(testActor, quarantinedEventClass)
} }
enterBarrier("quarantined") enterBarrier("quarantined")