Skip to content

Commit f3a50ed

Browse files
committed
Fix test with NioParams correct usage for this branch
1 parent ebb82ed commit f3a50ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/rabbitmq/client/test/ssl/TlsConnectionLogging.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ public static Function<ConnectionFactory, Supplier<SSLSession>> nio() {
5757
return connectionFactory -> {
5858
connectionFactory.useNio();
5959
AtomicReference<SSLEngine> sslEngineCaptor = new AtomicReference<>();
60-
connectionFactory.setNioParams(new NioParams()
61-
.setSslEngineConfigurator(sslEngine -> sslEngineCaptor.set(sslEngine)));
60+
NioParams nioParams = new NioParams();
61+
nioParams.setSslEngineConfigurator(sslEngine -> sslEngineCaptor.set(sslEngine));
62+
connectionFactory.setNioParams(nioParams);
6263
return () -> sslEngineCaptor.get().getSession();
6364
};
6465
}

0 commit comments

Comments
 (0)