Akka.Streams.Tests.Dsl.QueueSinkSpec.QueueSink_should_timeout_future_when_stream_cannot_provide_data C# (CSharp) Method

QueueSink_should_timeout_future_when_stream_cannot_provide_data() private method

        public void QueueSink_should_timeout_future_when_stream_cannot_provide_data()
        {
            this.AssertAllStagesStopped(() =>
            {
                var probe = TestPublisher.CreateManualProbe<int>(this);
                var queue = Source.FromPublisher(probe).RunWith(Sink.Queue<int>(), _materializer);
                var sub = probe.ExpectSubscription();

                queue.PullAsync().PipeTo(TestActor);
                ExpectNoMsg(_pause);

                sub.SendNext(1);
                ExpectMsg(new Option<int>(1));
                sub.SendComplete();
                queue.PullAsync();
            }, _materializer);
        }