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-reactive/src/test/kotlin/kotlinx/coroutines/experimental/reactive/PublisherBackpressureTest.kt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ class PublisherBackpressureTest : TestBase() {
36
36
try {
37
37
send("C") // will suspend (no more requested)
38
38
} finally {
39
-
expect(12)
39
+
expect(13)
40
40
}
41
41
expectUnreached()
42
42
}
@@ -58,7 +58,7 @@ class PublisherBackpressureTest : TestBase() {
58
58
}
59
59
60
60
overridefunonComplete() {
61
-
expect(13)
61
+
expect(11)
62
62
}
63
63
64
64
overridefunonError(e:Throwable) {
@@ -68,8 +68,8 @@ class PublisherBackpressureTest : TestBase() {
68
68
expect(4)
69
69
yield() // yield to observable coroutine
70
70
expect(10)
71
-
sub!!.cancel() // now unsubscribe -- shall cancel coroutine
72
-
expect(11)
71
+
sub!!.cancel() // now unsubscribe -- shall cancel coroutine & immediately signal onComplete
72
+
expect(12)
73
73
yield() // shall perform finally in coroutine & report onComplete
0 commit comments