Test for WatchWith had a race #25955 (#26925)

This commit is contained in:
Johan Andrén 2019-05-14 17:43:49 +02:00 committed by Arnout Engelen
parent 83503919b2
commit 41f1163a68

View file

@ -290,6 +290,7 @@ class WatchSpec extends ScalaTestWithActorTestKit(WatchSpec.config) with WordSpe
watcher ! StartWatchingWith(terminator, CustomTerminationMessage)
watcher ! StartWatchingWith(terminator, CustomTerminationMessage2)
watchProbe.expectMessage(Done)
watchProbe.expectMessage(Done)
terminator ! Stop
receivedTerminationSignal.future.futureValue shouldEqual CustomTerminationMessage2