From 7d863420e6ca4290e5d4be5fa0cfc25debcc5b40 Mon Sep 17 00:00:00 2001 From: Nicklas Ansman Giertz Date: Mon, 5 Oct 2020 13:17:18 -0400 Subject: [PATCH] Fix the broken test --- .../common/test/flow/terminal/SingleTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlinx-coroutines-core/common/test/flow/terminal/SingleTest.kt b/kotlinx-coroutines-core/common/test/flow/terminal/SingleTest.kt index 9c92b790d6..dd9857c7aa 100644 --- a/kotlinx-coroutines-core/common/test/flow/terminal/SingleTest.kt +++ b/kotlinx-coroutines-core/common/test/flow/terminal/SingleTest.kt @@ -7,7 +7,7 @@ package kotlinx.coroutines.flow import kotlinx.coroutines.* import kotlin.test.* -class SingleTest : TestBase() { +class SingleTest : TestBase() { @Test fun testSingle() = runTest { @@ -64,7 +64,7 @@ class SingleTest : TestBase() { assertEquals(1, flowOf(1).singleOrNull()) assertNull(flowOf(null).singleOrNull()) - assertFailsWith { flowOf().singleOrNull() } + assertNull(flowOf().singleOrNull()) } @Test