From 20185951422fe2a2cebec8a2537d7a9257212644 Mon Sep 17 00:00:00 2001 From: gaozhangmin Date: Mon, 15 Aug 2022 21:08:28 +0800 Subject: [PATCH] [fix][flaky-test] testSplitBundleForMultiTimes (#16562) --- .../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 0685c9f11ab5e..d11b031e80191 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 void testSplitBundleForMultiTimes() throws Exception{ 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);