Substream materialization failure test coverage and fix #22646
This commit is contained in:
parent
fcbda8157f
commit
d5459222aa
6 changed files with 92 additions and 8 deletions
|
|
@ -552,7 +552,14 @@ import akka.util.OptionVal
|
|||
}
|
||||
|
||||
switchToFirstElementHandlers()
|
||||
promise.trySuccess(Source.fromGraph(sourceOut.source).runWith(sink)(interpreter.subFusingMaterializer))
|
||||
try {
|
||||
val matVal = Source.fromGraph(sourceOut.source).runWith(sink)(interpreter.subFusingMaterializer)
|
||||
promise.trySuccess(matVal)
|
||||
} catch {
|
||||
case NonFatal(ex) ⇒
|
||||
promise.tryFailure(ex)
|
||||
failStage(ex)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue