Howdy y'all,
I'm using a TestKit probe. It receives most messages just fine. But somehow it's not noticing the termination of my actor:
probe.watch(repActor)
probe.expectTerminated(repActor, eventTimeout.plus(100.milliseconds))
I get:
[info] java.lang.AssertionError: assertion failed: expected: Terminated Actor[akka://ReplicatorSpec/user/$a#-968221567] but got unexpected message Foo(0)
[info] at scala.Predef$.assert(Predef.scala:170)
[info] at akka.testkit.TestKitBase$class.expectMsgPF(TestKit.scala:369)
...
Through logging, I can confirm that (a) the actor did die, and (b) the Foo(0) message is the first thing the actor sends after it restarts (and that's the only time it is sent).
I'm guessing there's something funky about my setup, but I'm not sure where to start digging. I was thinking using OneInstancePerTest might be helpful (as seen in another bug report) but that causes its own problems.