Skip to content

Commit 905fe0a

Browse files
committed
add more expect(i) to the last test
1 parent c6cf814 commit 905fe0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kotlinx-coroutines-core/common/test/flow/channels/ChannelFlowTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,14 @@ class ChannelFlowTest : TestBase() {
227227
fun testDispatchesToDifferentDispatcherWhenCollected() = runTest {
228228
expect(1)
229229
val myFlow = flow<Int> {
230-
finish(4)
230+
expect(4)
231231
}.flowOn(wrapperDispatcher())
232232
launch(start = CoroutineStart.UNDISPATCHED) {
233233
expect(2)
234234
myFlow.collectLatest {
235235
expectUnreached()
236236
}
237+
finish(5)
237238
}
238239
expect(3)
239240
}

0 commit comments

Comments
 (0)