You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `try-with-resource` on the `ApplicationContext` may stop this context
before the message is handled as expected in the flow logic.
The timing race condition is due to a scheduling nature of the `SourcePollingChannelAdapter`
Fix the `SourcePollingChannelAdapterErrorObservationTests` with a `CountDownLatch`
to wait in the `try-with-resource` block until it is fulfilled in the `afterSendCompletion()`
of the `ChannelInterceptor` on the `errorChannel`
**Auto-cherry-pick to `6.5.x`**
Copy file name to clipboardExpand all lines: spring-integration-core/src/test/java/org/springframework/integration/support/management/observation/SourcePollingChannelAdapterErrorObservationTests.java
0 commit comments