Skip to content

Commit cf5802e

Browse files
committed
~relax stress test, check that nothing is reported to global handler
1 parent f6c3446 commit cf5802e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

reactive/kotlinx-coroutines-rx2/test/ObservableTest.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ class ObservableTest : TestBase() {
143143
@Test
144144
fun testExceptionAfterCancellation() {
145145
val wasCalled = AtomicBoolean(false)
146-
val handler = { e: Throwable ->
147-
require(e !is CancellationException)
148-
wasCalled.set(true)
146+
val handler = { e: Throwable ->
147+
assertFalse(e is CancellationException)
149148
}
150149
withExceptionHandler(handler) {
151150
RxJavaPlugins.setErrorHandler {

0 commit comments

Comments
 (0)