Skip to content

Commit e8c44f1

Browse files
committed
Fix the broken test
1 parent c901bee commit e8c44f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/common/test/flow/terminal/SingleTest.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package kotlinx.coroutines.flow
77
import kotlinx.coroutines.*
88
import kotlin.test.*
99

10-
class SingleTest : TestBase() {
10+
class SingleTest : TestBase() {
1111

1212
@Test
1313
fun testSingle() = runTest {
@@ -64,7 +64,7 @@ class SingleTest : TestBase() {
6464

6565
assertEquals(1, flowOf<Int?>(1).singleOrNull())
6666
assertNull(flowOf<Int?>(null).singleOrNull())
67-
assertFailsWith<NoSuchElementException> { flowOf<Int?>().singleOrNull() }
67+
assertNull(flowOf<Int?>().singleOrNull())
6868
}
6969

7070
@Test

0 commit comments

Comments
 (0)