Skip to content

Commit

Permalink
Fix the broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
ansman authored and qwwdfsad committed Oct 7, 2020
1 parent 1479bf4 commit 7d86342
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -7,7 +7,7 @@ package kotlinx.coroutines.flow
import kotlinx.coroutines.*
import kotlin.test.*

class SingleTest : TestBase() {
class SingleTest : TestBase() {

@Test
fun testSingle() = runTest {
Expand Down Expand Up @@ -64,7 +64,7 @@ class SingleTest : TestBase() {

assertEquals(1, flowOf<Int?>(1).singleOrNull())
assertNull(flowOf<Int?>(null).singleOrNull())
assertFailsWith<NoSuchElementException> { flowOf<Int?>().singleOrNull() }
assertNull(flowOf<Int?>().singleOrNull())
}

@Test
Expand Down

0 comments on commit 7d86342

Please sign in to comment.