Skip to content

Commit

Permalink
fixup! SkipOnSetupFailure
Browse files Browse the repository at this point in the history
  • Loading branch information
VGalaxies committed Jun 11, 2024
1 parent 3938e55 commit d4ade9f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SkipOnSetupFailure implements TestRule {
public Statement apply(final Statement base, final Description description) {
return new Statement() {
@Override
public void evaluate() {
public void evaluate() throws Throwable {
try {
base.evaluate();
} catch (final Throwable e) {
Expand All @@ -43,6 +43,8 @@ public void evaluate() {
"Skipping test due to setup failure for %s@%s",
description.getClassName(), description.getMethodName()));
}
// rethrow
throw e;
}
}
};
Expand Down

0 comments on commit d4ade9f

Please sign in to comment.