public void Persistent_cluster_shards_should_restart_entities_which_stop_without_passivation()
{
Persistent_cluster_shards_should_permanently_stop_entities_which_passivate();
Within(TimeSpan.FromSeconds(50), () =>
{
RunOn(() =>
{
var x = _persistentRegion.Value;
}, _third, _fourth);
EnterBarrier("cluster-started-12");
RunOn(() =>
{
//create and increment counter 1
_persistentRegion.Value.Tell(new Counter.EntityEnvelope(1, Counter.Increment.Instance));
_persistentRegion.Value.Tell(new Counter.Get(1));
ExpectMsg(2);
var counter1 = Sys.ActorSelection(LastSender.Path);
counter1.Tell(Counter.Stop.Instance);
var probe = CreateTestProbe();
AwaitAssert(() =>
{
counter1.Tell(new Identify(1), probe.Ref);
Assert.NotNull(probe.ExpectMsg<ActorIdentity>(TimeSpan.FromSeconds(1)).Subject);
}, TimeSpan.FromSeconds(5), TimeSpan.FromMilliseconds(500));
}, _third);
EnterBarrier("after-14");
});
}