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:
[email protected]