Skip to content

MINOR: Replace try/fail/catch with assertThrows in Connect tests - #23860

Merged
mimaison merged 1 commit into
apache:trunkfrom
sunm2n:MINOR-connect-assertThrows
Oct 22, 2026
Merged

mimaison merged 1 commit into
apache:trunkfrom
sunm2n:MINOR-connect-assertThrows

Conversation

@sunm2n

@sunm2n sunm2n commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Replace 12 try/fail/catch blocks in Connect tests with assertThrows,
following the same cleanup in Streams tests (#23389 and #23636).

Preserve the expected exception types, existing failure messages, and
assertions on exception messages and causes.

Reviewers: Mickael Maison mickael.maison@gmail.com

@github-actions github-actions Bot added triage PRs from the community connect tests Test fixes (including flaky tests) labels Oct 19, 2026
@sunm2n

sunm2n commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

29 tests passed, including ConnectorClientPolicyIntegrationTest; Checkstyle and
Spotless checks passed for the affected modules.

@mimaison mimaison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR!

@mimaison
mimaison merged commit a817e6f into apache:trunk Oct 22, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved connect tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants