Skip to content

Commit ccfa93a

Browse files
sdeleuzemp911de
authored andcommitted
Polishing.
See #2926
1 parent 957fdf4 commit ccfa93a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/kotlin/org/springframework/data/repository/kotlin/CoroutineCrudRepositoryCustomImplementationUnitTests.kt

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.springframework.data.repository.kotlin
1717

1818
import io.mockk.mockk
19+
import kotlinx.coroutines.delay
1920
import kotlinx.coroutines.runBlocking
2021
import org.assertj.core.api.Assertions.assertThat
2122
import org.junit.jupiter.api.BeforeEach
@@ -45,7 +46,7 @@ class CoroutineCrudRepositoryCustomImplementationUnitTests {
4546
}
4647

4748
@Test // DATACMNS-1508
48-
fun shouldInvokeFindAll() {
49+
fun shouldInvokeFindOne() {
4950

5051
val result = runBlocking {
5152
coRepository.findOne("foo")
@@ -71,6 +72,7 @@ class CoroutineCrudRepositoryCustomImplementationUnitTests {
7172
class MyCustomCoRepositoryImpl : MyCustomCoRepository {
7273

7374
override suspend fun findOne(id: String): User {
75+
delay(1)
7476
return User()
7577
}
7678
}

0 commit comments

Comments
 (0)