diff --git a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/ReplicateSubscriptionStateTest.java b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/ReplicateSubscriptionStateTest.java index d80cb39e05dbf..02b503c5bb70c 100644 --- a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/ReplicateSubscriptionStateTest.java +++ b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/ReplicateSubscriptionStateTest.java @@ -24,6 +24,7 @@ import org.apache.pulsar.common.naming.TopicName; import org.apache.pulsar.tests.integration.docker.ContainerExecResult; import org.apache.pulsar.tests.integration.suites.PulsarCliTestSuite; +import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -35,7 +36,7 @@ public void before() throws Exception { super.before(); } - @BeforeClass(alwaysRun = true) + @AfterClass(alwaysRun = true) @Override public void after() throws Exception { super.after(); diff --git a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/topicpolicies/SchemaCompatibilityStrategyTest.java b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/topicpolicies/SchemaCompatibilityStrategyTest.java index 56d89d6b5028a..29e1ea6ae3540 100644 --- a/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/topicpolicies/SchemaCompatibilityStrategyTest.java +++ b/tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/topicpolicies/SchemaCompatibilityStrategyTest.java @@ -24,6 +24,7 @@ import org.apache.pulsar.tests.integration.docker.ContainerExecResult; import org.apache.pulsar.tests.integration.suites.PulsarCliTestSuite; import org.awaitility.Awaitility; +import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -35,7 +36,7 @@ public void before() throws Exception { super.before(); } - @BeforeClass(alwaysRun = true) + @AfterClass(alwaysRun = true) @Override public void after() throws Exception { super.after();