watchTermination now fails the future on downstream failure #27640

This commit is contained in:
Johan Andrén 2019-09-06 09:11:57 +02:00
parent ed955e0da4
commit f88ee384c3

View file

@ -50,7 +50,7 @@ class RecipeAdhocSource extends RecipeSpec {
sink.requestNext("a")
Thread.sleep(200)
shutdown.future.futureValue should be(Done)
shutdown.future.failed.futureValue shouldBe a[TimeoutException]
}
"not shut down the source when there are still demands" taggedAs TimingTest in {
@ -86,7 +86,7 @@ class RecipeAdhocSource extends RecipeSpec {
sink.requestNext("a")
startedCount.get() should be(1)
Thread.sleep(200)
shutdown.future.futureValue should be(Done)
shutdown.future.failed.futureValue shouldBe a[TimeoutException]
}
"restart up to specified maxRetries" taggedAs TimingTest in {