Skip to content

Commit 8248fe4

Browse files
circusmagnusqwwdfsad
authored andcommitted
Make MapTest - testErrorCancelsUpstream - actually test map operator
1 parent 58bfd08 commit 8248fe4

File tree

1 file changed

+2
-1
lines changed
  • kotlinx-coroutines-core/common/test/flow/operators

1 file changed

+2
-1
lines changed

kotlinx-coroutines-core/common/test/flow/operators/MapTest.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ class MapTest : TestBase() {
3737
hang { cancelled = true }
3838
}
3939
emit(1)
40+
expectUnreached()
4041
}
41-
}.onEach {
42+
}.map<Int, Int> {
4243
latch.receive()
4344
throw TestException()
4445
}.catch { emit(42) }

0 commit comments

Comments
 (0)