muralibasani commented on code in PR #23990:
URL: https://github.com/apache/kafka/pull/23990#discussion_r4448787625


##########
tools/src/test/java/org/apache/kafka/tools/LeaderElectionCommandTest.java:
##########
@@ -388,8 +388,12 @@ private void waitForOnlineBroker(Admin client, int 
brokerId) throws InterruptedE
     }
 
     private void assertLeader(Admin client, TopicPartition topicPartition, int 
expectedLeader) throws Exception {

Review Comment:
   Done. Both now wrap a single currentLeader lookup in waitForCondition. I put 
the helper in AdminClientTestUtils now, so other tests can use it.



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