Skip to content

Commit ffa4f5c

Browse files
authored
Fix netty latest dep test failure (open-telemetry#13649)
1 parent 78772ea commit ffa4f5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

instrumentation/netty/netty-4.1/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/netty/v4_1/Netty41ClientSslTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected void initChannel(SocketChannel socketChannel) throws Exception {
7979
ChannelPipeline pipeline = socketChannel.pipeline();
8080

8181
SslContext sslContext = SslContextBuilder.forClient().build();
82-
SSLEngine sslEngine = sslContext.newEngine(socketChannel.alloc());
82+
SSLEngine sslEngine = sslContext.newEngine(socketChannel.alloc(), "localhost", -1);
8383
if (enabledProtocols != null) {
8484
sslEngine.setEnabledProtocols(enabledProtocols.toArray(new String[0]));
8585
}

instrumentation/netty/netty-4.1/testing/src/main/java/io/opentelemetry/instrumentation/netty/v4_1/Netty41ClientExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected void initChannel(SocketChannel socketChannel) throws Exception {
7979
ChannelPipeline pipeline = socketChannel.pipeline();
8080
if (https) {
8181
SslContext sslContext = SslContextBuilder.forClient().build();
82-
pipeline.addLast(sslContext.newHandler(socketChannel.alloc()));
82+
pipeline.addLast(sslContext.newHandler(socketChannel.alloc(), "localhost", -1));
8383
}
8484
if (readTimeout) {
8585
pipeline.addLast(

0 commit comments

Comments
 (0)