yykaue opened a new pull request, #6947: URL: https://github.com/apache/shenyu/pull/6947
## What is this PR for? Fixes #6594. This PR replaces the catch-block-only assertion in `HeartbeatListenerTest#testSendHeartbeatWithLoginFailure` with `assertThrows`. The test now: - Requires `Method.invoke` to throw an `InvocationTargetException`. - Verifies that the underlying cause is a `RuntimeException`. - Prevents the test from passing vacuously when no exception is thrown. ## Verification - `HeartbeatListenerTest`: 8 tests passed. - Checkstyle passed with no violations. @Aias00 Could you please help review this PR? Thank you! -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
