=stk accept Throwable in stream probe's sendError methods (#23940)

This commit is contained in:
Johannes Rudolph 2017-11-09 09:12:58 +01:00 committed by Johan Andrén
parent 4d583d1e6c
commit 9d7621150f
2 changed files with 3 additions and 2 deletions

View file

@ -220,7 +220,7 @@ object TestPublisher {
this this
} }
def sendError(cause: Exception): Self = { def sendError(cause: Throwable): Self = {
subscription.sendError(cause) subscription.sendError(cause)
this this
} }
@ -795,7 +795,7 @@ private[testkit] object StreamTestKit {
def sendNext(element: I): Unit = subscriber.onNext(element) def sendNext(element: I): Unit = subscriber.onNext(element)
def sendComplete(): Unit = subscriber.onComplete() def sendComplete(): Unit = subscriber.onComplete()
def sendError(cause: Exception): Unit = subscriber.onError(cause) def sendError(cause: Throwable): Unit = subscriber.onError(cause)
def sendOnSubscribe(): Unit = subscriber.onSubscribe(this) def sendOnSubscribe(): Unit = subscriber.onSubscribe(this)
} }

View file

@ -309,6 +309,7 @@ lazy val streamTestkit = akkaModule("akka-stream-testkit")
.dependsOn(stream, testkit % "compile->compile;test->test") .dependsOn(stream, testkit % "compile->compile;test->test")
.settings(Dependencies.streamTestkit) .settings(Dependencies.streamTestkit)
.settings(OSGi.streamTestkit) .settings(OSGi.streamTestkit)
.disablePlugins(MimaPlugin)
lazy val streamTests = akkaModule("akka-stream-tests") lazy val streamTests = akkaModule("akka-stream-tests")
.dependsOn(streamTestkit % "test->test", stream) .dependsOn(streamTestkit % "test->test", stream)