Skip to content

Commit 5c5c89e

Browse files
committed
Merge branch '5.3.x'
2 parents 4e687ab + e4ec376 commit 5c5c89e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@ import kotlinx.coroutines.flow.Flow
2525
import kotlinx.coroutines.flow.flow
2626
import org.assertj.core.api.Assertions.assertThat
2727
import org.assertj.core.api.Assertions.assertThatExceptionOfType
28+
import org.junit.jupiter.api.Assumptions.assumeFalse
2829
import org.springframework.context.ApplicationContext
2930
import org.springframework.context.annotation.AnnotationConfigApplicationContext
3031
import org.springframework.context.annotation.ComponentScan
@@ -37,6 +38,7 @@ import org.springframework.web.bind.annotation.RestController
3738
import org.springframework.web.client.HttpServerErrorException
3839
import org.springframework.web.reactive.config.EnableWebFlux
3940
import org.springframework.web.testfixture.http.server.reactive.bootstrap.HttpServer
41+
import org.springframework.web.testfixture.http.server.reactive.bootstrap.UndertowHttpServer
4042
import reactor.core.publisher.Flux
4143
import java.time.Duration
4244

@@ -115,6 +117,8 @@ class CoroutinesIntegrationTests : AbstractRequestMappingIntegrationTests() {
115117

116118
@ParameterizedHttpServerTest
117119
fun `Suspending handler method returning ResponseEntity of Flux `(httpServer: HttpServer) {
120+
assumeFalse(httpServer is UndertowHttpServer, "Undertow currently fails")
121+
118122
startServer(httpServer)
119123

120124
val entity = performGet<String>("/entity-flux", HttpHeaders.EMPTY, String::class.java)

0 commit comments

Comments
 (0)