From 6c4240ede5fb794319253de3a4a02e47b83b2e66 Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Fri, 1 Apr 2022 17:51:43 +0300 Subject: [PATCH] [test] Use addHandler to add extractor to the pipeline (#2136) HttpOperations#addHandler adds extractor to the pipeline --- .../reactor/netty/channel/ChannelOperationsHandlerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()