Timing differences between JavaTestKit and javadsl.TestKit - Akka 2.5.32

Akka version: 2.5.32

Hey guys,

I’m converting some unit tests that involve passing messages between actors from JavaTestKit to javadsl.TestKit. This causes some of the unit tests to fail. It’s a timing issue - the failures can be solved by replacing ActorRef with TestActorRef (forcing the message passing to happen synchronously) or, in some cases, adding a short wait period.

I’m trying to find out exactly why this might be happening - It seems like they’re both primarily wrappers for TestProbe.