eolivelli commented on a change in pull request #9262:
URL: https://github.com/apache/pulsar/pull/9262#discussion_r561971562



##########
File path: 
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiOffloadTest.java
##########
@@ -180,43 +183,32 @@ public void testOffloadPolicies() throws Exception {
     public void testOffloadPoliciesApi() throws Exception {
         final String topicName = testTopic + UUID.randomUUID().toString();
         admin.topics().createPartitionedTopic(topicName, 3);
-        //wait for server init
-        Thread.sleep(1000);
+        pulsarClient.newProducer().topic(topicName).create().close();
+        Awaitility.await().atMost(10, TimeUnit.SECONDS)

Review comment:
       please consider leaving the default wait time (here and below), that is 
10 seconds
   
   as @lhotari suggested in #9258  




----------------------------------------------------------------
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]


Reply via email to