From 8b1fcfce37527075b28e47c957c0423ec3d6a1b8 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 4 Sep 2019 14:37:03 +0200 Subject: [PATCH] #532 - Adapt to changes in Kotlin Coroutines 1.3. --- .../springdata/mongodb/people/FlowAndCoroutinesTests.kt | 4 +++- pom.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt index 21dd03d2..a94e5a80 100644 --- a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt +++ b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt @@ -15,9 +15,10 @@ */ package example.springdata.mongodb.people +import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.toList import kotlinx.coroutines.reactive.awaitSingle -import kotlinx.coroutines.reactive.flow.asFlow +import kotlinx.coroutines.reactive.asFlow import kotlinx.coroutines.runBlocking import org.assertj.core.api.Assertions.assertThat import org.junit.Before @@ -62,6 +63,7 @@ class FlowAndCoroutinesTests { } @Test + @ExperimentalCoroutinesApi fun `find - the flow way`() { StepVerifier.create(operations.insert().one(Person("Tyrion", "Lannister"))).expectNextCount(1).verifyComplete() diff --git a/pom.xml b/pom.xml index 7fddcb5e..ffc2b2d7 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ org.springframework.boot spring-boot-starter-parent - 2.2.0.M5 + 2.2.0.BUILD-SNAPSHOT