Akka.Streams.Tests.Dsl.FlowSelectSpec.Select_should_not_blow_up_with_high_request_counts C# (CSharp) Method

Select_should_not_blow_up_with_high_request_counts() private method

        public void Select_should_not_blow_up_with_high_request_counts()
        {
            var probe = this.CreateManualProbe<int>();

            Source.From(new [] {1})
                .Select(x => x + 1)
                .Select(x => x + 1)
                .Select(x => x + 1)
                .Select(x => x + 1)
                .Select(x => x + 1)
                .RunWith(Sink.AsPublisher<int>(false), _materializer)
                .Subscribe(probe);

            var subscription = probe.ExpectSubscription();
            // TODO increase to 10000 once performance is improved
            for (int i = 1; i <= 1000; i++)
            {
                subscription.Request(int.MaxValue);
            }

            probe.ExpectNext(6);
            probe.ExpectComplete();
        }
    }