Filter out hanging tests realted to Reactor Netty

Issue: SPR-14975
This commit is contained in:
Rossen Stoyanchev
2016-12-05 16:03:12 -05:00
parent 0e20360bf9
commit 953f7d40cf
2 changed files with 13 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ package org.springframework.http.server.reactive;
import java.io.File;
import java.net.URI;
import org.junit.Assume;
import org.junit.Test;
import reactor.core.publisher.Mono;
@@ -34,6 +35,7 @@ import org.springframework.web.client.RestTemplate;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
/**
@@ -50,9 +52,12 @@ public class ZeroCopyIntegrationTests extends AbstractHttpHandlerIntegrationTest
@Test
public void zeroCopy() throws Exception {
// SPR-14975
assumeFalse(server instanceof ReactorHttpServer);
// Zero-copy only does not support servlet
assumeTrue(server instanceof ReactorHttpServer ||
server instanceof UndertowHttpServer);
assumeTrue(server instanceof ReactorHttpServer || server instanceof UndertowHttpServer);
RestTemplate restTemplate = new RestTemplate();