Skip to content

Commit

Permalink
Add missing AfterMethod annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Oct 28, 2023
1 parent fb92b55 commit d7fdf4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.fail;
import org.apache.pulsar.broker.PulsarServerException;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.Test;

public class InvalidBrokerConfigForAuthorizationTest extends MockedPulsarServiceBaseTest {
Expand All @@ -47,6 +48,8 @@ protected void setup() throws Exception {

}


@AfterMethod(alwaysRun = true)
@Override
protected void cleanup() throws Exception {
internalCleanup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;

import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -35,6 +34,7 @@
import org.apache.pulsar.client.impl.ConsumerImpl;
import org.apache.pulsar.common.nar.NarClassLoader;
import org.awaitility.Awaitility;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

Expand All @@ -53,6 +53,7 @@ public void setup() throws Exception {
super.producerBaseSetup();
}

@AfterMethod(alwaysRun = true)
@Override
protected void cleanup() throws Exception {
super.internalCleanup();
Expand Down

0 comments on commit d7fdf4e

Please sign in to comment.