From d4ade9fe864c0efb20267137aec193153b5b1cd2 Mon Sep 17 00:00:00 2001 From: VGalaxies Date: Wed, 12 Jun 2024 02:11:46 +0800 Subject: [PATCH] fixup! SkipOnSetupFailure --- .../org/apache/iotdb/subscription/it/SkipOnSetupFailure.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration-test/src/test/java/org/apache/iotdb/subscription/it/SkipOnSetupFailure.java b/integration-test/src/test/java/org/apache/iotdb/subscription/it/SkipOnSetupFailure.java index 5060b8171eaf..def99f0dcf01 100644 --- a/integration-test/src/test/java/org/apache/iotdb/subscription/it/SkipOnSetupFailure.java +++ b/integration-test/src/test/java/org/apache/iotdb/subscription/it/SkipOnSetupFailure.java @@ -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) { @@ -43,6 +43,8 @@ public void evaluate() { "Skipping test due to setup failure for %s@%s", description.getClassName(), description.getMethodName())); } + // rethrow + throw e; } } };