We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TimeoutInterceptor
1 parent a7dedb4 commit a601d72Copy full SHA for a601d72
spock-core/src/main/java/org/spockframework/runtime/extension/builtin/TimeoutInterceptor.java
@@ -110,7 +110,11 @@ public void intercept(final IMethodInvocation invocation) throws Throwable {
110
// As this won't take long, it should also be acceptable if this thread
111
// got interrupted by some other thread. To report on the latter case,
112
// we save off the exception, overriding any previously saved exception.
113
- saved = e;
+ if (saved != null) {
114
+ saved.addSuppressed(e);
115
+ } else {
116
+ saved = e;
117
+ }
118
}
119
120
if (stackTrace.length > 0) {
0 commit comments