Skip to content

KAFKA-12188: Assert specific connection failure in SaslAuthenticatorTest - #23485

Open
hysuuuu wants to merge 1 commit into
apache:trunkfrom
hysuuuu:KAFKA-12188
Open

hysuuuu wants to merge 1 commit into
apache:trunkfrom
hysuuuu:KAFKA-12188

Conversation

@hysuuuu

@hysuuuu hysuuuu commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Previously, SaslAuthenticatorTest blindly caught AssertionFailedError. This allows unrelated assertion failures in checkClientConnection to pass the test.

Added an exact message check for "No disconnects should have occurred" to ensure the tests pass only when the server explicitly drops the connection, which is the expected behavior.

@github-actions github-actions Bot added triage PRs from the community tests Test fixes (including flaky tests) clients small Small PRs labels Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved clients small Small PRs tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants