diff --git a/akka-testkit/src/test/scala/akka/testkit/AkkaSpecSpec.scala b/akka-testkit/src/test/scala/akka/testkit/AkkaSpecSpec.scala index b2ed7e414e..db932d05e3 100644 --- a/akka-testkit/src/test/scala/akka/testkit/AkkaSpecSpec.scala +++ b/akka-testkit/src/test/scala/akka/testkit/AkkaSpecSpec.scala @@ -74,7 +74,7 @@ class AkkaSpecSpec extends WordSpec with MustMatchers { system.eventStream.subscribe(davyJones, classOf[DeadLetter]) val probe = new TestProbe(system) - probe.ref ! 42 + probe.ref.tell(42, davyJones) /* * this will ensure that the message is actually received, otherwise it * may happen that the system.stop() suspends the testActor before it had