From 4e53fe17e4d5bfff40d29e41a22f14203c333de1 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Fri, 7 Feb 2020 08:41:28 -0500 Subject: [PATCH] Deprecation: Channel(...) (#4449) --- core/src/test/java/hudson/ChannelRule.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/hudson/ChannelRule.java b/core/src/test/java/hudson/ChannelRule.java index b94adc4898..0db92ec998 100644 --- a/core/src/test/java/hudson/ChannelRule.java +++ b/core/src/test/java/hudson/ChannelRule.java @@ -2,6 +2,7 @@ package hudson; import hudson.remoting.Channel; +import hudson.remoting.ChannelBuilder; import hudson.remoting.FastPipedInputStream; import hudson.remoting.FastPipedOutputStream; import java.io.IOException; @@ -33,12 +34,12 @@ public final class ChannelRule extends ExternalResource { Future f1 = executors.submit(new Callable() { public Channel call() throws Exception { - return new Channel("This side of the channel", executors, p1i, p2o); + return new ChannelBuilder("This side of the channel", executors).withMode(Channel.Mode.BINARY).build(p1i, p2o); } }); Future f2 = executors.submit(new Callable() { public Channel call() throws Exception { - return new Channel("The other side of the channel", executors, p2i, p1o); + return new ChannelBuilder("The other side of the channel", executors).withMode(Channel.Mode.BINARY).build(p2i, p1o); } }); french = f1.get();