This is an automated email from the ASF dual-hosted git repository.

tkalkirill pushed a commit to branch ignite-26128
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 558a3ebdbb7d285b508079ed96bd59d885619e15
Author: Kirill Tkalenko <[email protected]>
AuthorDate: Tue Aug 5 14:37:23 2025 +0300

    IGNITE-26128 wip
---
 .../ignite/internal/testframework/IgniteTestUtils.java   | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git 
a/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
 
b/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
index dd4babb5302..f379f5d385a 100644
--- 
a/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
+++ 
b/modules/core/src/testFixtures/java/org/apache/ignite/internal/testframework/IgniteTestUtils.java
@@ -914,18 +914,20 @@ public final class IgniteTestUtils {
                 thread.interrupt();
             }
 
-            fail("Race operations took too long.");
+            throw createAssertionError("Race operations took too long.", e, 
throwables);
         }
 
         if (!throwables.isEmpty()) {
-            AssertionError assertionError = new AssertionError("One or several 
threads have failed.");
+            throw createAssertionError("One or several threads have failed.", 
null, throwables);
+        }
+    }
 
-            for (Throwable throwable : throwables) {
-                assertionError.addSuppressed(throwable);
-            }
+    private static AssertionError createAssertionError(String errorMessage, 
@Nullable Throwable cause, Collection<Throwable> suppressed) {
+        var error = new AssertionError(errorMessage, cause);
 
-            throw assertionError;
-        }
+        suppressed.forEach(error::addSuppressed);
+
+        return error;
     }
 
     /**

Reply via email to