问题
I have a test which constructs another event sourcing actor from inside message handler and this construction is taking more than 3 seconds. Below is current configuration, how can I increase default timeout?
extends ScalaTestWithActorTestKit(
ConfigFactory.parseString("""
akka.persistence.testkit.events.serialize = off
akka.actor.allow-java-serialization = on
akka.test.single-expect-default = 999s
""").withFallback(PersistenceTestKitPlugin.config).withFallback(ManualTime.config)
Here is the error message:
Timeout (3 seconds) during receiveMessage while waiting for message.
java.lang.AssertionError: Timeout (3 seconds) during receiveMessage while waiting for message.
来源:https://stackoverflow.com/questions/65133027/how-to-increase-default-timeout-for-scalatestwithactortestkit