Skip to content

Commit 35af7c8

Browse files
committed
Fixed rx2.ObservableMultiTest.testSendAndCrash
1 parent 60de4b3 commit 35af7c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reactive/kotlinx-coroutines-rx2/src/test/kotlin/kotlinx/coroutines/experimental/rx2/ObservableMultiTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class ObservableMultiTest : TestBase() {
9090
val single = rxSingle(CommonPool) {
9191
var result = ""
9292
try {
93-
observable.forEach { result += it }
93+
observable.consumeEach { result += it }
9494
} catch(e: IOException) {
9595
result += e.message
9696
}

0 commit comments

Comments
 (0)