Akka.Cluster.Tests.ClusterDomainEventPublisherSpec.ClusterDomainEventPublisher_must_publish_role_leader_changed C# (CSharp) Method

ClusterDomainEventPublisher_must_publish_role_leader_changed() private method

        public void ClusterDomainEventPublisher_must_publish_role_leader_changed()
        {
            var subscriber = CreateTestProbe();
            _publisher.Tell(new InternalClusterAction.Subscribe(subscriber.Ref, ClusterEvent.SubscriptionInitialStateMode.InitialStateAsSnapshot, ImmutableHashSet.Create(typeof(ClusterEvent.RoleLeaderChanged))));
            subscriber.ExpectMsg<ClusterEvent.CurrentClusterState>();
            // but only to the new subscriber
            _memberSubscriber.ExpectNoMsg(TimeSpan.FromMilliseconds(500));
        }