Skip to content

Commit 33e7ce4

Browse files
committed
Removed "cancel parent" from TestBase exception handlers
1 parent 5d18d02 commit 33e7ce4

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

core/kotlinx-coroutines-core/test/TestBase.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ public actual open class TestBase actual constructor() {
146146
!unhandled[exCount - 1](e) ->
147147
printError("Unhandled exception was unexpected: $e", e)
148148
}
149-
context[Job]?.cancel(e)
150149
})
151150
} catch (e: Throwable) {
152151
ex = e

js/kotlinx-coroutines-core-js/test/TestBase.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ public actual open class TestBase actual constructor() {
8181
!unhandled[exCount - 1](e) ->
8282
printError("Unhandled exception was unexpected: $e", e)
8383
}
84-
context[Job]?.cancel(e)
8584
}).catch { e ->
8685
ex = e
8786
if (expected != null) {

native/kotlinx-coroutines-core-native/test/TestBase.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public actual open class TestBase actual constructor() {
7676
!unhandled[exCount - 1](e) ->
7777
printError("Unhandled exception was unexpected: $e", e)
7878
}
79-
context[Job]?.cancel(e)
8079
})
8180
} catch (e: Throwable) {
8281
ex = e

0 commit comments

Comments
 (0)