Akka.Cluster.Tools.Tests.MultiNode.PublishSubscribe.DistributedPubSubMediatorSpec.DistributedPubSubMediator_should_remove_entries_when_node_is_removed C# (CSharp) Method

DistributedPubSubMediator_should_remove_entries_when_node_is_removed() public method

        public void DistributedPubSubMediator_should_remove_entries_when_node_is_removed()
        {
            DistributedPubSubMediator_should_transfer_delta_correctly();

            Within(TimeSpan.FromSeconds(30), () =>
            {
                Mediator.Tell(Count.Instance);
                var countBefore = ExpectMsg<int>();

                RunOn(() =>
                {
                    TestConductor.Exit(_third, 0).Wait();
                }, _first);
                EnterBarrier("third-shutdown");

                // third had 2 entries u5 and u11, and those should be removed everywhere
                RunOn(() =>
                {
                    AwaitCount(countBefore - 2);
                }, _first, _second);
                EnterBarrier("after-14");
            });
        }