MINOR: Fix assertion in testCreatePermissionMetadataRequestAutoCreate
Since `retry` expects a `by name` parameter, passing a nullary function
causes assertion failures to be ignored. I verified this by introducing
a failing assertion before/after the fix.
I checked other `retry` usages and they looked correct.
Reviewers: Manikumar Reddy
@@ -1052,10 +1052,10 @@ class AuthorizerIntegrationTest extends BaseRequestTest {
addAndVerifyAcls(createAcls, createTopicResource)
// retry as topic being created can have MetadataResponse with Errors.LEADER_NOT_AVAILABLE
- TestUtils.retry(JTestUtils.DEFAULT_MAX_WAIT_MS)(() => {
+ TestUtils.retry(JTestUtils.DEFAULT_MAX_WAIT_MS) {
val metadataResponse = connectAndReceive[MetadataResponse](metadataRequest)
assertEquals(Set(topic, createTopic).asJava, metadataResponse.topicsByError(Errors.NONE))
- })
+ }
}
@Test(expected = classOf[AuthorizationException])
