Browse Source

Trying to fix flaky CoroutinesIntegrationTests

pull/29184/head
Arjen Poutsma 3 years ago
parent
commit
fa5998ebd4
  1. 2
      spring-webflux/src/test/kotlin/org/springframework/web/reactive/result/method/annotation/CoroutinesIntegrationTests.kt

2
spring-webflux/src/test/kotlin/org/springframework/web/reactive/result/method/annotation/CoroutinesIntegrationTests.kt

@ -198,7 +198,7 @@ class CoroutinesIntegrationTests : AbstractRequestMappingIntegrationTests() { @@ -198,7 +198,7 @@ class CoroutinesIntegrationTests : AbstractRequestMappingIntegrationTests() {
suspend fun entityFlux() : ResponseEntity<Flux<String>> {
val strings = Flux.interval(Duration.ofMillis(100)).take(5)
.map { l -> l.toString() }
delay(1)
delay(10)
return ResponseEntity.ok().body(strings)
}

Loading…
Cancel
Save