From 41f1163a687cbdbb376c7202ea8a708da637f970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Andr=C3=A9n?= Date: Tue, 14 May 2019 17:43:49 +0200 Subject: [PATCH] Test for WatchWith had a race #25955 (#26925) --- .../src/test/scala/akka/actor/typed/WatchSpec.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/akka-actor-typed-tests/src/test/scala/akka/actor/typed/WatchSpec.scala b/akka-actor-typed-tests/src/test/scala/akka/actor/typed/WatchSpec.scala index 66e97d04b3..bb18cdd3f7 100644 --- a/akka-actor-typed-tests/src/test/scala/akka/actor/typed/WatchSpec.scala +++ b/akka-actor-typed-tests/src/test/scala/akka/actor/typed/WatchSpec.scala @@ -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