[fix][test] Fix flaky test org.apache.pulsar.broker.service.persistent.PersistentSubscriptionMessageDispatchStreamingDispatcherThrottlingTest#setup
@@ -20,7 +20,7 @@ package org.apache.pulsar.broker.service.persistent;
import org.apache.pulsar.broker.service.streamingdispatch.StreamingDispatcher;
import org.apache.pulsar.client.api.SubscriptionMessageDispatchThrottlingTest;
-import org.testng.annotations.BeforeMethod;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
/**
@@ -30,7 +30,7 @@ import org.testng.annotations.Test;
public class PersistentSubscriptionMessageDispatchStreamingDispatcherThrottlingTest
extends SubscriptionMessageDispatchThrottlingTest {
- @BeforeMethod
+ @BeforeClass
@Override
protected void setup() throws Exception {
super.setup();
