You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/10/28 02:26:15 UTC

[GitHub] [pulsar] 315157973 commented on a change in pull request #8392: Try to fix flaky test in the InactiveTopicDeleteTest.java

315157973 commented on a change in pull request #8392:
URL: https://github.com/apache/pulsar/pull/8392#discussion_r513141543



##########
File path: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/InactiveTopicDeleteTest.java
##########
@@ -303,10 +303,10 @@ public void testTopicLevelInActiveTopicApi() throws Exception {
         conf.setSystemTopicEnabled(true);
         conf.setTopicLevelPoliciesEnabled(true);
         super.baseSetup();
-        //wait for init
-        Thread.sleep(2000);
         final String topicName = "persistent://prop/ns-abc/testMaxInactiveDuration-" + UUID.randomUUID().toString();
         admin.topics().createPartitionedTopic(topicName, 3);
+        //wait for init
+        Thread.sleep(3000);

Review comment:
       I added an api to determine whether the cache is initialized




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org