#24097 Try a few times to get an exception

This commit is contained in:
Martynas Mickevičius 2017-12-06 20:52:47 +07:00 committed by Johan Andrén
parent f5d28a8e07
commit 2fd9bb736b

View file

@ -160,7 +160,10 @@ class OutputStreamSourceSpec extends StreamSpec(UnboundedMailboxConfig) {
s.cancel()
sourceProbe.expectMsg(GraphStageMessages.DownstreamFinish)
the[Exception] thrownBy outputStream.write(bytesArray) shouldBe a[IOException]
awaitAssert {
the[Exception] thrownBy outputStream.write(bytesArray) shouldBe a[IOException]
}
}
"fail to materialize with zero sized input buffer" in {