Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporary disable tests that observe CancellationException #2561

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import io.netty5.handler.logging.LoggingHandler;
import io.netty5.resolver.AddressResolverGroup;
import io.netty5.resolver.DefaultAddressResolverGroup;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
Expand Down Expand Up @@ -86,6 +87,7 @@ public int port() {
};

@Test
@Disabled
void simpleServerFromAsyncServer() {
DisposableServer simpleServer =
TcpServer.create()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import io.netty5.resolver.DefaultAddressResolverGroup;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
Expand Down Expand Up @@ -289,6 +290,7 @@ void tcpConnectionInboundAndOutboundCompletesOnDispose() throws Exception {
}

@Test
@Disabled
void tcpClientHandlesLineFeedDataFixedPool() throws InterruptedException {
Consumer<? super Connection> channelInit = c -> c.addHandlerLast("codec", new LineBasedFrameDecoder(8 * 1024));

Expand All @@ -302,6 +304,7 @@ void tcpClientHandlesLineFeedDataFixedPool() throws InterruptedException {
}

@Test
@Disabled
void tcpClientHandlesLineFeedDataElasticPool() throws InterruptedException {
Consumer<? super Connection> channelInit = c -> c.addHandlerLast("codec", new LineBasedFrameDecoder(8 * 1024));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
import io.netty5.util.concurrent.EventExecutor;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.reactivestreams.Publisher;
Expand Down Expand Up @@ -536,6 +537,7 @@ void startAndAwait() throws InterruptedException {
}

@Test
@Disabled
void tcpServerCanEncodeAndDecodeJSON() throws Exception {
ObjectMapper mapper = new ObjectMapper();
Function<Pojo, Buffer> jsonEncoder = pojo -> {
Expand Down Expand Up @@ -663,6 +665,7 @@ void flushEvery5ElementsWithManualDecoding() throws Exception {
}

@Test
@Disabled
void retryStrategiesWhenServerFails() throws Exception {
ObjectMapper mapper = new ObjectMapper();
Function<List<Pojo>, Buffer> jsonEncoder = pojo -> {
Expand Down Expand Up @@ -739,6 +742,7 @@ void retryStrategiesWhenServerFails() throws Exception {
}

@Test
@Disabled
void testEchoWithLineBasedFrameDecoder() throws Exception {
CountDownLatch latch = new CountDownLatch(2);
DisposableServer server =
Expand Down Expand Up @@ -909,6 +913,7 @@ void testHalfClosedConnection() throws Exception {
}

@Test
@Disabled
void testGracefulShutdown() throws Exception {
CountDownLatch latch1 = new CountDownLatch(2);
CountDownLatch latch2 = new CountDownLatch(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import io.netty5.handler.timeout.ReadTimeoutHandler;
import io.netty5.util.concurrent.DefaultPromise;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import org.mockito.Mockito;
Expand Down Expand Up @@ -382,6 +383,7 @@ void testAccessLog(HttpServer server, HttpClient client) throws Exception {
}

@ParameterizedCompatibleCombinationsTest
@Disabled
void testResponseTimeout(HttpServer server, HttpClient client) throws Exception {
disposableServer =
server.handle((req, res) -> res.sendString(Mono.just("testProtocolVariationsResponseTimeout")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
import io.netty5.util.concurrent.EventExecutor;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
Expand Down Expand Up @@ -2882,6 +2883,7 @@ void testCustomHandlerAddedOnChannelInitAlwaysAvailable() {
}

@Test
@Disabled
void testCustomHandlerAddedOnChannelConnectedAlwaysAvailable() {
doTestCustomHandlerAddedOnCallbackAlwaysAvailable(
client -> client.doOnConnected(conn -> conn.addHandlerLast("custom", new ChannelHandlerAdapter(){})));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import io.netty5.handler.ssl.util.SelfSignedCertificate;
import org.apache.commons.lang3.StringUtils;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
Expand Down Expand Up @@ -674,11 +675,13 @@ void testLastLocationSetToResourceUrlOnRedirect() {
}

@Test
@Disabled
void testBuffersForRedirectWithContentShouldBeReleased() {
doTestBuffersForRedirectWithContentShouldBeReleased("Redirect response content!");
}

@Test
@Disabled
void testBuffersForRedirectWithLargeContentShouldBeReleased() {
doTestBuffersForRedirectWithContentShouldBeReleased(StringUtils.repeat("a", 10000));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down Expand Up @@ -1725,6 +1726,7 @@ void testIssue1001() throws Exception {
}

@Test
@Disabled
void testGracefulShutdown() throws Exception {
CountDownLatch latch1 = new CountDownLatch(2);
CountDownLatch latch2 = new CountDownLatch(2);
Expand Down