lianetm commented on code in PR #18050: URL: https://github.com/apache/kafka/pull/18050#discussion_r1905888150
########## clients/src/test/java/org/apache/kafka/clients/consumer/internals/CoordinatorRequestManagerTest.java: ########## @@ -194,25 +190,11 @@ public void testBackoffAfterRetriableFailure() { public void testPropagateAndBackoffAfterFatalError() { CoordinatorRequestManager coordinatorManager = setupCoordinatorManager(GROUP_ID); expectFindCoordinatorRequest(coordinatorManager, Errors.GROUP_AUTHORIZATION_FAILED); - - verify(backgroundEventHandler).add(argThat(backgroundEvent -> { - if (!(backgroundEvent instanceof ErrorEvent)) - return false; - - RuntimeException exception = ((ErrorEvent) backgroundEvent).error(); - - if (!(exception instanceof GroupAuthorizationException)) - return false; - - GroupAuthorizationException groupAuthException = (GroupAuthorizationException) exception; - return groupAuthException.groupId().equals(GROUP_ID); - })); - - time.sleep(RETRY_BACKOFF_MS - 1); Review Comment: I think we should keep this line, and the we don't need to change the assertion below (I would expect the only change in this test is to remove the verify). Also, should we rename it to `testBackoffAfterFatalError`? -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org