Skip to content

Commit

Permalink
PROTON-2867 Wrap the driver assertions in a thread local error
Browse files Browse the repository at this point in the history
Ensure the error thrown shows the actual location of the test driver
method that throws the assertion making it easier to see where in the
unit tests the assertion comes from.
  • Loading branch information
tabish121 committed Jan 21, 2025
1 parent fa9e0b5 commit 0108c9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ private void processScript(ScriptedElement current) {

private void checkFailed() {
if (failureCause != null) {
throw failureCause;
throw new AssertionError(failureCause.getMessage(), failureCause);
}
}
}

0 comments on commit 0108c9d

Please sign in to comment.