We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c4301 commit 8df6f5aCopy full SHA for 8df6f5a
kotlinx-coroutines-core/common/test/flow/sharing/StateInTest.kt
@@ -77,13 +77,13 @@ class StateInTest : TestBase() {
77
}
78
79
@Test
80
- fun testUpstreamFailedIMmediatelyWithInitialValue() = runTest {
+ fun testUpstreamFailedImmediatelyWithInitialValue() = runTest {
81
val ceh = CoroutineExceptionHandler { _, _ -> expect(2) }
82
val flow = flow<Int> {
83
expect(1)
84
throw TestException()
85
86
- assertFailsWith<TestException> { flow.stateIn(CoroutineScope(ceh)) }
+ assertFailsWith<TestException> { flow.stateIn(CoroutineScope(currentCoroutineContext() + Job() + ceh)) }
87
finish(3)
88
89
0 commit comments