public void Startup_of_ClusterSingleton_should_be_quick()
{
Join(_config.First, _config.First);
Join(_config.Second, _config.First);
Join(_config.Third, _config.First);
Within(TimeSpan.FromSeconds(7), () =>
{
AwaitAssert(() =>
{
var members = Cluster.ReadView.State.Members;
Assert.Equal(3, members.Count);
members.All(c => c.Status == MemberStatus.Up).Should().BeTrue();
});
});
EnterBarrier("all-up");
// the singleton instance is expected to start "instantly"
EchoProxy.Value.Tell("hello");
ExpectMsg<IActorRef>(TimeSpan.FromSeconds(3));
EnterBarrier("done");
}