jerrypeng commented on a change in pull request #7507:
URL: https://github.com/apache/pulsar/pull/7507#discussion_r453082083



##########
File path: 
pulsar-broker/src/test/java/org/apache/pulsar/io/PulsarFunctionE2ETest.java
##########
@@ -1493,6 +1493,7 @@ public void testPulsarFunctionStatus() throws Exception {
 
     @Test(dataProvider = "validRoleName")
     public void testAuthorization(boolean validRoleName) throws Exception {
+        functionsWorkerService.getLeaderService().waitLeaderInit();

Review comment:
       I would put this in the setup method

##########
File path: 
pulsar-broker/src/test/java/org/apache/pulsar/io/PulsarFunctionE2ETest.java
##########
@@ -1493,6 +1493,7 @@ public void testPulsarFunctionStatus() throws Exception {
 
     @Test(dataProvider = "validRoleName")
     public void testAuthorization(boolean validRoleName) throws Exception {
+        functionsWorkerService.getLeaderService().waitLeaderInit();

Review comment:
       at the end of the setup method




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to