aboutsummaryrefslogtreecommitdiffstats
path: root/reactive/kotlinx-coroutines-jdk9/test/PublisherAsFlowTest.kt
diff options
context:
space:
mode:
Diffstat (limited to 'reactive/kotlinx-coroutines-jdk9/test/PublisherAsFlowTest.kt')
-rw-r--r--reactive/kotlinx-coroutines-jdk9/test/PublisherAsFlowTest.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/reactive/kotlinx-coroutines-jdk9/test/PublisherAsFlowTest.kt b/reactive/kotlinx-coroutines-jdk9/test/PublisherAsFlowTest.kt
index 97f106b3..b5b2a0a2 100644
--- a/reactive/kotlinx-coroutines-jdk9/test/PublisherAsFlowTest.kt
+++ b/reactive/kotlinx-coroutines-jdk9/test/PublisherAsFlowTest.kt
@@ -70,7 +70,7 @@ class PublisherAsFlowTest : TestBase() {
send(it + 1)
expect(it + 1)
}
- assertFalse { offer(-1) }
+ assertFalse { trySend(-1).isSuccess }
}
publisher.asFlow().collect {