omkreddy commented on code in PR #13114: URL: https://github.com/apache/kafka/pull/13114#discussion_r1106755866
########## core/src/test/scala/unit/kafka/server/AlterUserScramCredentialsRequestTest.scala: ########## @@ -260,11 +271,13 @@ class AlterUserScramCredentialsRequestTest extends BaseRequestTest { .setSalt(saltBytes) .setSaltedPassword(saltedPasswordBytes), ))).build() - val results1 = sendAlterUserScramCredentialsRequest(request1).data.results - assertEquals(2, results1.size) - checkNoErrorsAlteringCredentials(results1) - checkUserAppearsInAlterResults(results1, user1) - checkUserAppearsInAlterResults(results1, user2) + val results1_1 = sendAlterUserScramCredentialsRequest(request1_1).data.results + assertEquals(2, results1_1.size) + checkNoErrorsAlteringCredentials(results1_1) + checkUserAppearsInAlterResults(results1_1, user1) + checkUserAppearsInAlterResults(results1_1, user2) + + Thread.sleep(10000) Review Comment: we generally use 'TestUtils.waitForCondition` in tests to wait for condition -- 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