public void A_Flow_with_SelectAsyncUnordered_must_finish_after_task_failure()
{
this.AssertAllStagesStopped(() =>
{
var t = Source.From(Enumerable.Range(1, 3))
.SelectAsyncUnordered(1, n => Task.Run(() =>
{
if (n == 3)
throw new TestException("err3b");
return n;
}))
.WithAttributes(ActorAttributes.CreateSupervisionStrategy(Deciders.ResumingDecider))
.Grouped(10)
.RunWith(Sink.First<IEnumerable<int>>(), Materializer);
t.Wait(TimeSpan.FromSeconds(1)).Should().BeTrue();
t.Result.ShouldAllBeEquivalentTo(new[] {1, 2});
}, Materializer);
}