public void ClusterSharding_with_flaky_journal_should_join_cluster()
{
ClusterSharding_with_flaky_journal_should_setup_shared_journal();
Within(TimeSpan.FromSeconds(20), () =>
{
Join(_first, _first);
Join(_second, _first);
RunOn(() =>
{
var region = _region.Value;
region.Tell(new Add("10", 1));
region.Tell(new Add("20", 2));
region.Tell(new Add("21", 3));
region.Tell(new Get("10"));
ExpectMsg<Value>(v => v.Id == "10" && v.N == 1);
region.Tell(new Get("20"));
ExpectMsg<Value>(v => v.Id == "20" && v.N == 2);
region.Tell(new Get("21"));
ExpectMsg<Value>(v => v.Id == "21" && v.N == 3);
}, _first);
EnterBarrier("after-2");
});
}