fix up StreamTestKitSpec

This commit is contained in:
Roland Kuhn 2016-01-16 17:54:39 +01:00
parent ecc916abfd
commit 960cc5a6e4

View file

@ -22,7 +22,7 @@ class StreamTestKitSpec extends AkkaSpec {
}
"#toStrict with failing source" in {
val msg = intercept[AssertionError] {
val error = intercept[AssertionError] {
Source.fromIterator(() new Iterator[Int] {
var i = 0
override def hasNext: Boolean = true
@ -35,10 +35,10 @@ class StreamTestKitSpec extends AkkaSpec {
}
}).runWith(TestSink.probe)
.toStrict(300.millis)
}.getMessage
}
msg should include("Boom!")
msg should include("List(1, 2)")
error.getCause.getMessage should include("Boom!")
error.getMessage should include("List(1, 2)")
}
"#toStrict when subscription was already obtained" in {