public void ClusterSharding_should_work_in_single_node_cluster()
{
ClusterSharding_should_setup_shared_journal();
Within(TimeSpan.FromSeconds(20), () =>
{
Join(_first, _first);
RunOn(() =>
{
var r = _region.Value;
r.Tell(new Counter.EntityEnvelope(1, Counter.Increment.Instance));
r.Tell(new Counter.EntityEnvelope(1, Counter.Increment.Instance));
r.Tell(new Counter.EntityEnvelope(1, Counter.Increment.Instance));
r.Tell(new Counter.EntityEnvelope(1, Counter.Decrement.Instance));
r.Tell(new Counter.Get(1));
ExpectMsg(2);
r.Tell(GetCurrentRegions.Instance);
ExpectMsg<CurrentRegions>(m => m.Regions.Length == 1 && m.Regions[0].Equals(Cluster.SelfAddress));
}, _first);
EnterBarrier("after-2");
});
}