mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-09 00:29:04 +00:00
The rejection tests verified the exception target with `satisfies(ex -> assertThat(ex.getTarget() == target))`, which never asserts anything as the boolean `assertThat` is not followed by a check. Assert the target via `extracting(...).isSameAs(...)` instead, against the proxy, since the concurrency throttle is applied at the AOP proxy level and the proxy is what gets passed as the exception target. Closes gh-37411 Signed-off-by: Tim te Beek <tim@moderne.io>