We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c901bee commit e8c44f1Copy full SHA for e8c44f1
kotlinx-coroutines-core/common/test/flow/terminal/SingleTest.kt
@@ -7,7 +7,7 @@ package kotlinx.coroutines.flow
7
import kotlinx.coroutines.*
8
import kotlin.test.*
9
10
-class SingleTest : TestBase() {
+class SingleTest : TestBase() {
11
12
@Test
13
fun testSingle() = runTest {
@@ -64,7 +64,7 @@ class SingleTest : TestBase() {
64
65
assertEquals(1, flowOf<Int?>(1).singleOrNull())
66
assertNull(flowOf<Int?>(null).singleOrNull())
67
- assertFailsWith<NoSuchElementException> { flowOf<Int?>().singleOrNull() }
+ assertNull(flowOf<Int?>().singleOrNull())
68
}
69
70
0 commit comments