Akka.Cluster.Tests.MultiNode.Routing.ClusterConsistentHashingRouterSpec.A_cluster_router_with_consistent_hashing_pool_must_deploy_routees_to_new_member_nodes_in_the_cluster C# (CSharp) Method

A_cluster_router_with_consistent_hashing_pool_must_deploy_routees_to_new_member_nodes_in_the_cluster() protected method

        protected void A_cluster_router_with_consistent_hashing_pool_must_deploy_routees_to_new_member_nodes_in_the_cluster()
        {
            AwaitClusterUp(_config.First, _config.Second, _config.Third);

            RunOn(() =>
            {
                //it may take some time until router receives cluster member events
                AwaitAssert(() =>
                {
                    CurrentRoutees(Router1).Members.Count().ShouldBe(6);
                });
                var routees = CurrentRoutees(Router1);
                var routerMembers = routees.Members.Select(x => FullAddress(((ActorRefRoutee)x).Actor)).Distinct().ToList();
                routerMembers.ShouldBe(Roles.Select(GetAddress).ToList());
            }, _config.First);

            EnterBarrier("after-4");
        }