RobertIndie commented on a change in pull request #14120:
URL: https://github.com/apache/pulsar/pull/14120#discussion_r800318087



##########
File path: 
pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminTest.java
##########
@@ -423,22 +423,22 @@ public void properties() throws Throwable {
                 .allowedClusters(allowedClusters)
                 .build();
         response = asynRequests(ctx -> properties.createTenant(ctx, 
"test-property", tenantInfo));
-        verify(properties, times(2)).validateSuperUserAccess();
+        verify(properties, times(1)).validateSuperUserAccess();

Review comment:
       I mean I think we need to add that verification. I think we'd better add 
another verification for `validateSuperUserAccessAsync ` after line 450: 
`verify(properties, times(2)).validateSuperUserAccessAsync();`. This will make 
the test more clear.




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