Skip to content

Commit 84fe287

Browse files
committed
SQL: [TESTS] Improve error messages on failures (#47308)
When an integration test fails before the assertion of the results it's missing information, like the file name and the line in the file where the test resides. (cherry picked from commit 683dc72)
1 parent 0a04365 commit 84fe287

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/sql/qa/src/main/java/org/elasticsearch/xpack/sql/qa/jdbc/SpecBaseIntegrationTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public final void test() throws Throwable {
9090
try {
9191
assumeFalse("Test marked as Ignored", testName.endsWith("-Ignore"));
9292
doTest();
93-
} catch (AssertionError ae) {
94-
throw reworkException(ae);
93+
} catch (Exception e) {
94+
throw reworkException(e);
9595
}
9696
}
9797

0 commit comments

Comments
 (0)