Skip to content

Commit 770993d

Browse files
author
Sergey Mashkov
committed
Fix exceptions loss in tests
1 parent 979887b commit 770993d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-io/common/test/kotlinx/coroutines/io/DummyCoroutines.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DummyCoroutines {
1313

1414
override fun resumeWith(result: Result<Unit>) {
1515
liveCoroutines--
16-
failure = result.exceptionOrNull()
16+
failure = failure ?: result.exceptionOrNull()
1717
if (result.isSuccess) {
1818
process()
1919
}

0 commit comments

Comments
 (0)