mirror of https://github.com/apache/kafka.git
				
				
				
			MINOR: Fix assertion in testCreatePermissionMetadataRequestAutoCreate (#7864)
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 <manikumar.reddy@gmail.com>
This commit is contained in:
		
							parent
							
								
									1adf0ee889
								
							
						
					
					
						commit
						98d36fa54e
					
				|  | @ -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]) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue