Skip to content

Commit e4ec376

Browse files
committed
Disabling Undertow server in CoroutinesIntegrationTests
1 parent c81e11d commit e4ec376

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

+5-1
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.
@@ -24,6 +24,7 @@ import kotlinx.coroutines.flow.Flow
2424
import kotlinx.coroutines.flow.flow
2525
import org.assertj.core.api.Assertions.assertThat
2626
import org.assertj.core.api.Assertions.assertThatExceptionOfType
27+
import org.junit.jupiter.api.Assumptions.assumeFalse
2728
import org.springframework.context.ApplicationContext
2829
import org.springframework.context.annotation.AnnotationConfigApplicationContext
2930
import org.springframework.context.annotation.ComponentScan
@@ -36,6 +37,7 @@ import org.springframework.web.bind.annotation.RestController
3637
import org.springframework.web.client.HttpServerErrorException
3738
import org.springframework.web.reactive.config.EnableWebFlux
3839
import org.springframework.web.testfixture.http.server.reactive.bootstrap.HttpServer
40+
import org.springframework.web.testfixture.http.server.reactive.bootstrap.UndertowHttpServer
3941
import reactor.core.publisher.Flux
4042
import java.time.Duration
4143

@@ -114,6 +116,8 @@ class CoroutinesIntegrationTests : AbstractRequestMappingIntegrationTests() {
114116

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

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

0 commit comments

Comments
 (0)