We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6c3446 commit cf5802eCopy full SHA for cf5802e
reactive/kotlinx-coroutines-rx2/test/ObservableTest.kt
@@ -143,9 +143,8 @@ class ObservableTest : TestBase() {
143
@Test
144
fun testExceptionAfterCancellation() {
145
val wasCalled = AtomicBoolean(false)
146
- val handler = { e: Throwable ->
147
- require(e !is CancellationException)
148
- wasCalled.set(true)
+ val handler = { e: Throwable ->
+ assertFalse(e is CancellationException)
149
}
150
withExceptionHandler(handler) {
151
RxJavaPlugins.setErrorHandler {
0 commit comments