Skip to content

Commit 47b97c4

Browse files
committed
+tck carry the original exception to fail(), helps tracking exceptions
1 parent 91120b8 commit 47b97c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tck/src/main/java/org/reactivestreams/tck/TestEnvironment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void flop(String msg) {
7070
// keeps passed in throwable as asyncError instead of creating a new AssertionError
7171
public void flop(Throwable thr, String msg) {
7272
try {
73-
fail(msg);
73+
fail(msg, thr);
7474
} catch (Throwable t) {
7575
asyncErrors.add(thr);
7676
}
@@ -167,7 +167,7 @@ public void verifyNoAsyncErrors() {
167167
if (e instanceof AssertionError) {
168168
throw (AssertionError) e;
169169
} else {
170-
fail("Async error during test execution: " + e);
170+
fail("Async error during test execution: " + e, e);
171171
}
172172
}
173173
}

0 commit comments

Comments
 (0)