This is an automated email from the ASF dual-hosted git repository.
snuyanzin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 4f530c5ba72 [hotfix][tests] Catch `AssertionError` in `DiffRepository`
instead of `AssertionFailedError`
4f530c5ba72 is described below
commit 4f530c5ba72731628afce75b92377e7457d487b5
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Mon Jan 26 10:27:50 2026 +0100
[hotfix][tests] Catch `AssertionError` in `DiffRepository` instead of
`AssertionFailedError`
---
.../test/java/org/apache/flink/table/planner/utils/DiffRepository.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/utils/DiffRepository.java
b/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/utils/DiffRepository.java
index d4ff5c260ec..8c0f2ec281d 100644
---
a/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/utils/DiffRepository.java
+++
b/flink-table/flink-table-planner/src/test/java/org/apache/flink/table/planner/utils/DiffRepository.java
@@ -27,7 +27,6 @@ import org.apache.calcite.util.Pair;
import org.apache.calcite.util.Sources;
import org.apache.calcite.util.Util;
import org.apache.calcite.util.XmlOutput;
-import org.opentest4j.AssertionFailedError;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Comment;
import org.w3c.dom.Document;
@@ -479,7 +478,7 @@ public class DiffRepository {
+ " but was: "
+ actualCanonical)
.isEqualTo(expected2Canonical);
- } catch (AssertionFailedError e) {
+ } catch (AssertionError e) {
amend(testCaseName, expected, actual);
throw e;
}