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 683dc7213311d13c81e06829e08f3f9f80ebf73a)
This commit is contained in:
Marios Trivyzas 2019-09-30 22:18:02 +03:00
parent 890951113f
commit bd2abeef40
No known key found for this signature in database
GPG Key ID: 8817B46B0CF36A3F
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ public abstract class SpecBaseIntegrationTestCase extends JdbcIntegrationTestCas
try {
assumeFalse("Test marked as Ignored", testName.endsWith("-Ignore"));
doTest();
} catch (AssertionError ae) {
throw reworkException(ae);
} catch (Exception e) {
throw reworkException(e);
}
}