Skip to content

Commit

Permalink
create producer before test to make sure the namespace onload finishe…
Browse files Browse the repository at this point in the history
…d. (apache#7748)
  • Loading branch information
gaoran10 authored Aug 4, 2020
1 parent e915b8e commit 739bd1e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.pulsar.broker.auth.MockedPulsarServiceBaseTest;
import org.apache.pulsar.broker.service.BacklogQuotaManager;
import org.apache.pulsar.client.admin.PulsarAdminException;
import org.apache.pulsar.client.api.Producer;
import org.apache.pulsar.common.naming.TopicName;
import org.apache.pulsar.common.policies.data.BacklogQuota;
import org.apache.pulsar.common.policies.data.ClusterData;
Expand Down Expand Up @@ -71,6 +72,8 @@ protected void setup() throws Exception {
admin.tenants().createTenant(this.testTenant, tenantInfo);
admin.namespaces().createNamespace(testTenant + "/" + testNamespace, Sets.newHashSet("test"));
admin.topics().createPartitionedTopic(backlogQuotaTopic, 2);
Producer producer = pulsarClient.newProducer().topic(testTenant + "/" + testNamespace + "/" + "lookup-topic").create();
producer.close();
}

@AfterMethod
Expand Down

0 comments on commit 739bd1e

Please sign in to comment.