sijie commented on a change in pull request #6202: (Flaky-tests) Reduce
flakiness of tests
URL: https://github.com/apache/pulsar/pull/6202#discussion_r383485529
##########
File path:
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java
##########
@@ -1646,7 +1646,7 @@ public void persistentTopicsCursorResetAfterReset(String
topicName) throws Excep
});
for (int i = 0; i < 10; i++) {
- Message<byte[]> message = consumer.receive();
+ Message<byte[]> message = consumer.receive(5, TimeUnit.SECONDS);
Review comment:
I am not sure it is a good idea to change to 5 seconds. Because it can cause
flakiness if JVM pauses for 5 seconds.
----------------------------------------------------------------
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]
With regards,
Apache Git Services