tkalkirill commented on code in PR #3331:
URL: https://github.com/apache/ignite-3/pull/3331#discussion_r1508919335
##########
modules/network/src/test/java/org/apache/ignite/internal/network/netty/NettyServerTest.java:
##########
@@ -271,6 +268,15 @@ protected void initChannel(Channel ch) throws Exception {
order.verify(handshakeManager, timeout()).onMessage(any());
}
+ private HandshakeManager mockHandshakeManager() {
+ HandshakeManager handshakeManager = mock(HandshakeManager.class);
+
+
when(handshakeManager.localHandshakeFuture()).thenReturn(CompletableFuture.completedFuture(mock(NettySender.class)));
Review Comment:
Maybe use static import for `completedFuture` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]