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 d743278068c [fix][test] Fix flaky
LookupPropertiesTest.testConcurrentLookupProperties (#24854)
d743278068c is described below
commit d743278068c293dc6e6405e140c0271ea5fe3a14
Author: Philipp Dolif <[email protected]>
AuthorDate: Wed Oct 15 10:39:39 2025 +0200
[fix][test] Fix flaky LookupPropertiesTest.testConcurrentLookupProperties
(#24854)
---
.../test/java/org/apache/pulsar/client/api/LookupPropertiesTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/pulsar-broker/src/test/java/org/apache/pulsar/client/api/LookupPropertiesTest.java
b/pulsar-broker/src/test/java/org/apache/pulsar/client/api/LookupPropertiesTest.java
index 75c545a040b..82ae4cfab44 100644
---
a/pulsar-broker/src/test/java/org/apache/pulsar/client/api/LookupPropertiesTest.java
+++
b/pulsar-broker/src/test/java/org/apache/pulsar/client/api/LookupPropertiesTest.java
@@ -18,6 +18,7 @@
*/
package org.apache.pulsar.client.api;
+import static org.assertj.core.api.Assertions.assertThat;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.Collections;
@@ -112,7 +113,7 @@ public class LookupPropertiesTest extends
MultiBrokerBaseTest {
client.getConfiguration().setLookupProperties(Collections.emptyMap());
}
FutureUtil.waitForAll(futures).get();
- Assert.assertEquals(clientIdList,
BrokerIdAwareLoadManager.CLIENT_ID_LIST);
+
assertThat(BrokerIdAwareLoadManager.CLIENT_ID_LIST).containsExactlyInAnyOrderElementsOf(clientIdList);
}
public static class BrokerIdAwareLoadManager extends
ExtensibleLoadManagerImpl {