watchTermination now fails the future on downstream failure #27640
This commit is contained in:
parent
ed955e0da4
commit
f88ee384c3
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue