AMashenkov commented on code in PR #2271: URL: https://github.com/apache/ignite-3/pull/2271#discussion_r1270432171
########## modules/client-handler/src/test/java/org/apache/ignite/client/handler/JdbcQueryEventHandlerImplTest.java: ########## @@ -123,23 +122,21 @@ public void sessionRecreatedIfExpired() throws IgniteInternalCheckedException { JdbcConnectionContext context = resourceRegistry.get(connectionId).get(JdbcConnectionContext.class); - when(queryProcessor.createSession(any())).thenAnswer(inv -> new SessionId(UUID.randomUUID())); + SessionId sessionId = new SessionId(UUID.randomUUID()); - List<Integer> errorCodes = List.of(Sql.SESSION_EXPIRED_ERR, Sql.SESSION_NOT_FOUND_ERR); + when(queryProcessor.createSession(any())).thenAnswer(inv -> sessionId); Review Comment: ```suggestion when(queryProcessor.createSession(any())).thenReturn(sessionId); ``` -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org