avoid unique actor name issue in EndToEndEventAdapterSpec, #23483 (#23520)

* the name of the actor is of no importance
This commit is contained in:
Patrik Nordwall 2017-08-22 14:09:45 +02:00 committed by Arnout Engelen
parent 1ba5b27158
commit 2b803562f0

View file

@ -151,7 +151,7 @@ abstract class EndToEndEventAdapterSpec(journalName: String, journalConfig: Conf
""".stripMargin)
def persister(name: String, probe: Option[ActorRef] = None)(implicit system: ActorSystem) =
system.actorOf(Props(classOf[EndToEndAdapterActor], name, "akka.persistence.journal." + journalName, probe), name)
system.actorOf(Props(classOf[EndToEndAdapterActor], name, "akka.persistence.journal." + journalName, probe))
def withActorSystem[T](name: String, config: Config)(block: ActorSystem T): T = {
val system = ActorSystem(name, journalConfig withFallback config)