Skip to content

Commit 0108c9d

Browse files
committed
PROTON-2867 Wrap the driver assertions in a thread local error
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.
1 parent fa9e0b5 commit 0108c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protonj2-test-driver/src/main/java/org/apache/qpid/protonj2/test/driver/AMQPTestDriver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ private void processScript(ScriptedElement current) {
850850

851851
private void checkFailed() {
852852
if (failureCause != null) {
853-
throw failureCause;
853+
throw new AssertionError(failureCause.getMessage(), failureCause);
854854
}
855855
}
856856
}

0 commit comments

Comments
 (0)