You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reactive/kotlinx-coroutines-rx1/src/test/kotlin/kotlinx/coroutines/experimental/rx1/ObservableBackpressureTest.kt
+4-4
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ class ObservableBackpressureTest : TestBase() {
35
35
try {
36
36
send("C") // will suspend (no more requested)
37
37
} finally {
38
-
expect(12)
38
+
expect(13)
39
39
}
40
40
expectUnreached()
41
41
}
@@ -55,7 +55,7 @@ class ObservableBackpressureTest : TestBase() {
55
55
}
56
56
57
57
overridefunonCompleted() {
58
-
expect(13)
58
+
expect(11)
59
59
}
60
60
61
61
overridefunonError(e:Throwable) {
@@ -65,8 +65,8 @@ class ObservableBackpressureTest : TestBase() {
65
65
expect(4)
66
66
yield() // yield to observable coroutine
67
67
expect(10)
68
-
sub.unsubscribe() // now unsubscribe -- shall cancel coroutine
69
-
expect(11)
68
+
sub.unsubscribe() // now unsubscribe -- shall cancel coroutine & immediately signal onComplete
69
+
expect(12)
70
70
yield() // shall perform finally in coroutine & invoke onCompleted
0 commit comments