public void IdleTimeout_must_pass_through_error_unmodified()
{
this.AssertAllStagesStopped(() =>
{
var task = Source.From(Enumerable.Range(1, 100))
.Concat(Source.Failed<int>(new TestException("test")))
.IdleTimeout(TimeSpan.FromSeconds(2)).Grouped(200)
.RunWith(Sink.First<IEnumerable<int>>(), Materializer);
task.Invoking(t => t.Wait(TimeSpan.FromSeconds(3)))
.ShouldThrow<TestException>().WithMessage("test");
}, Materializer);
}