merlimat commented on code in PR #25445:
URL: https://github.com/apache/pulsar/pull/25445#discussion_r3017107641


##########
pulsar-broker/src/test/java/org/apache/pulsar/client/api/KeySharedSubscriptionTest.java:
##########
@@ -820,7 +808,7 @@ public void 
testRemoveFirstConsumer(KeySharedImplementationType impl) throws Exc
         }
 
         // C2 will not be able to receive any messages until C1 is done 
processing whatever he got prefetched
-        assertNull(c2.receive(1, TimeUnit.SECONDS));
+        assertNull(c2.receive(200, TimeUnit.MILLISECONDS));

Review Comment:
   This one should be safe since it's checking that the message is *not* 
received within the timeout, so a shorter timeout won't make it more "flaky".



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to