This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new 1236316ffcb [fix][flaky-test] testSplitBundleForMultiTimes (#16562)
1236316ffcb is described below
commit 1236316ffcbf7f62662658e2bcba43dd0a208ce1
Author: gaozhangmin <[email protected]>
AuthorDate: Mon Aug 15 21:08:28 2022 +0800
[fix][flaky-test] testSplitBundleForMultiTimes (#16562)
---
.../src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
index 0685c9f11ab..d11b031e801 100644
---
a/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
+++
b/pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/NamespacesTest.java
@@ -1829,6 +1829,9 @@ public class NamespacesTest extends
MockedPulsarServiceBaseTest {
String namespace = BrokerTestUtil.newUniqueName(this.testTenant +
"/namespace");
BundlesData data = BundlesData.builder().numBundles(4).build();
admin.namespaces().createNamespace(namespace, data);
+ URL localWebServiceUrl = new URL(pulsar.getSafeWebServiceAddress());
+ final NamespaceName testNs = NamespaceName.get(namespace);
+ mockWebUrl(localWebServiceUrl, testNs);
for (int i = 0; i < 10; i ++) {
final BundlesData bundles =
admin.namespaces().getBundles(namespace);
final String bundle = bundles.getBoundaries().get(0) + "_" +
bundles.getBoundaries().get(1);