Skip to content

Commit

Permalink
[test] Use addHandler to add extractor to the pipeline (#2136)
Browse files Browse the repository at this point in the history
HttpOperations#addHandler adds extractor to the pipeline
  • Loading branch information
violetagg authored Apr 1, 2022
1 parent 51eabd6 commit 6c4240e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6c4240e

Please sign in to comment.