Skip to content

Commit 5851bb7

Browse files
committed
Merge pull request #148 from ktoso/impr-tck-stacktraces
+tck carry the original exception to fail(), helps tracking exceptions
2 parents 8ad2b0c + aeeb961 commit 5851bb7

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
@@ -69,7 +69,7 @@ public void flop(String msg) {
6969
// keeps passed in throwable as asyncError instead of creating a new AssertionError
7070
public void flop(Throwable thr, String msg) {
7171
try {
72-
fail(msg);
72+
fail(msg, thr);
7373
} catch (Throwable t) {
7474
asyncErrors.add(thr);
7575
}
@@ -160,7 +160,7 @@ public void verifyNoAsyncErrors() {
160160
if (e instanceof AssertionError) {
161161
throw (AssertionError) e;
162162
} else {
163-
fail("Async error during test execution: " + e);
163+
fail("Async error during test execution: " + e.getMessage(), e);
164164
}
165165
}
166166
}

0 commit comments

Comments
 (0)