vldpyatkov commented on code in PR #6552:
URL: https://github.com/apache/ignite-3/pull/6552#discussion_r2324754099


##########
modules/network/src/test/java/org/apache/ignite/internal/network/netty/RecoveryHandshakeTest.java:
##########
@@ -705,8 +718,19 @@ private void exchangeInitiatorToAcceptor(EmbeddedChannel 
acceptorSideChannel, Em
     }
 
     private void runPendingTasks(EmbeddedChannel channel1, EmbeddedChannel 
channel2) {
-        channel1.runPendingTasks();
-        channel2.runPendingTasks();
+        Queue<?> evtLoop1Queue = getFieldValue(channel1.eventLoop(), 
AbstractScheduledEventExecutor.class, "scheduledTaskQueue");
+        Queue<?> evtLoop2Queue = getFieldValue(channel2.eventLoop(), 
AbstractScheduledEventExecutor.class, "scheduledTaskQueue");
+
+        try {
+            IgniteTestUtils.waitForCondition(() -> {

Review Comment:
   Fixed.



-- 
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

Reply via email to