sashapolo commented on code in PR #5122:
URL: https://github.com/apache/ignite-3/pull/5122#discussion_r1930335629


##########
modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/asserts/CompletableFutureAssert.java:
##########
@@ -92,12 +92,18 @@ public static <X extends Throwable> X assertWillThrow(
         try {
             normalResult = future.get(timeout, timeUnit);
         } catch (TimeoutException e) {
-            return fail("Expected the future to be completed with an exception 
of class in time, but it did not");
+            if (expectedExceptionClass.isInstance(e)) {

Review Comment:
   Why do we need a separate case for this exception at all?



##########
modules/network/src/test/java/org/apache/ignite/internal/network/DefaultMessagingServiceTest.java:
##########
@@ -525,6 +539,8 @@ private Services createMessagingService(
 
         messagingService.setConnectionManager(connectionManager);
 
+        messagingService.start();

Review Comment:
   Why did this line not exist before?



##########
modules/core/src/main/java/org/apache/ignite/internal/future/timeout/TimeoutObject.java:
##########
@@ -37,4 +38,11 @@ public interface TimeoutObject<T extends 
CompletableFuture<?>> {
      * @return A future.
      */
     T future();
+
+    /**
+     * Describes the operation that has time limit. This is used to construct 
TimeoutException.
+     */
+    default @Nullable String describe() {

Review Comment:
   Why not implement it in all inheritors?



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

Reply via email to