Skip to content

Commit 5bf1ea0

Browse files
committed
Fix tests after merge
1 parent 3874964 commit 5bf1ea0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

kmp-nativecoroutines-core/src/nativeCoroutinesTest/kotlin/com/rickclephas/kmp/nativecoroutines/NativeFlowTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class NativeFlowTests {
2424
fun ensureExceptionsAreReceivedAsErrors() = runTest {
2525
val exception = RandomException()
2626
val flow = flow<RandomValue> { throw exception }
27-
val nativeFlow = flow.asNativeFlow(this)
27+
val nativeFlow = flow.asNativeFlow(this, arrayOf(RandomException::class))
2828
val completionCount = atomic(0)
2929
nativeFlow({ _, _ -> }, { error, _ ->
3030
assertNotNull(error, "Flow should complete with an error")

kmp-nativecoroutines-core/src/nativeCoroutinesTest/kotlin/com/rickclephas/kmp/nativecoroutines/NativeSuspendTests.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class NativeSuspendTests {
1919
@Test
2020
fun ensureCorrectResultIsReceived() = runTest {
2121
val value = RandomValue()
22-
val nativeSuspend = nativeSuspend(this) { delayAndReturn(100, value) }
22+
val nativeSuspend = nativeSuspend(this, arrayOf(RandomException::class)) {
23+
delayAndReturn(100, value)
24+
}
2325
val receivedResultCount = atomic(0)
2426
val receivedErrorCount = atomic(0)
2527
nativeSuspend({ receivedValue, _ ->

0 commit comments

Comments
 (0)