This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 708a02885ce [fix][test] Fix flaky
AutoScaledReceiverQueueSizeTest.testNegativeClientMemory (#24324)
708a02885ce is described below
commit 708a02885ce019644c436b1d9a57ae750df6b69a
Author: hanmz <[email protected]>
AuthorDate: Wed May 21 19:22:55 2025 +0800
[fix][test] Fix flaky
AutoScaledReceiverQueueSizeTest.testNegativeClientMemory (#24324)
---
.../pulsar/client/impl/AutoScaledReceiverQueueSizeTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/AutoScaledReceiverQueueSizeTest.java
b/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/AutoScaledReceiverQueueSizeTest.java
index 5359158bf72..2fefc7f13f9 100644
---
a/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/AutoScaledReceiverQueueSizeTest.java
+++
b/pulsar-broker/src/test/java/org/apache/pulsar/client/impl/AutoScaledReceiverQueueSizeTest.java
@@ -38,20 +38,20 @@ import
org.apache.pulsar.client.api.SubscriptionInitialPosition;
import org.apache.pulsar.common.util.FutureUtil;
import org.awaitility.Awaitility;
import org.testng.Assert;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@Slf4j
public class AutoScaledReceiverQueueSizeTest extends
MockedPulsarServiceBaseTest {
- @BeforeClass(alwaysRun = true)
+ @BeforeMethod(alwaysRun = true)
@Override
protected void setup() throws Exception {
super.internalSetup();
setupDefaultTenantAndNamespace();
}
- @AfterClass(alwaysRun = true)
+ @AfterMethod(alwaysRun = true)
@Override
protected void cleanup() throws Exception {
super.internalCleanup();