diff --git a/reactor-netty-http/src/test/java/reactor/netty/channel/ChannelOperationsHandlerTest.java b/reactor-netty-http/src/test/java/reactor/netty/channel/ChannelOperationsHandlerTest.java index 4dc4865cb7..85f44f6ad4 100644 --- a/reactor-netty-http/src/test/java/reactor/netty/channel/ChannelOperationsHandlerTest.java +++ b/reactor-netty-http/src/test/java/reactor/netty/channel/ChannelOperationsHandlerTest.java @@ -70,11 +70,12 @@ void publisherSenderOnCompleteFlushInProgress_4() { doTestPublisherSenderOnCompleteFlushInProgress(true, new WriteTimeoutHandler(1)); } + @SuppressWarnings("deprecation") private void doTestPublisherSenderOnCompleteFlushInProgress(boolean useScheduler, @Nullable ChannelHandler handler) { AtomicInteger counter = new AtomicInteger(); disposableServer = createServer() - .doOnConnection(conn -> conn.addHandlerLast(new LineBasedFrameDecoder(10))) + .doOnConnection(conn -> conn.addHandler(new LineBasedFrameDecoder(10))) .handle((req, res) -> req.receive() .asString()