public void RemoteRouter_must_set_supplied_SupervisorStrategy()
{
var probe = CreateTestProbe(masterActorSystem);
var escalator = new OneForOneStrategy(ex =>
{
probe.Ref.Tell(ex);
return Directive.Escalate;
});
var router =
masterActorSystem.ActorOf(
new RemoteRouterConfig(new RoundRobinPool(1, null, escalator, null),
new[] { new Address("akka.tcp", sysName, "127.0.0.1", port) })
.Props(Props.Empty), "blub3");
router.Tell(new GetRoutees(), probe.Ref);
// Need to be able to bind EventFilter to additional actor system (masterActorSystem in this case) before this code works
// EventFilter.Exception<ActorKilledException>().ExpectOne(() =>
probe.ExpectMsg<Routees>().Members.Head().Send(Kill.Instance, TestActor);
//);
probe.ExpectMsg<ActorKilledException>();
}
}