gnodet opened a new pull request, #26120: URL: https://github.com/apache/camel/pull/26120
## Problem `SpringFileAntPathMatcherRemoteFileFilterTest.testAntPatchMatcherFilter` is flaky with two distinct failure modes: 1. **`expected <1> but was <9>` — state contamination**: The FTP consumer URI had no `delete` option, so consumed files remained on the FTP server. Since `FtpServiceExtension.afterAll()` is a no-op (the FTP server is never stopped/reset), files accumulated across test retries, causing the mock to receive duplicate messages. 2. **`expected <1> but was <0>` — timing race**: The consumer had `initialDelay=2000ms`, and with the default `MockEndpoint.resultWaitTime` (10s), the assertion could expire before the first poll completed on slow CI environments. ## Fix - **Add `delete=true`** to the FTP consumer URI in the Spring XML context — files are deleted after processing, preventing accumulation across retries - **Change `initialDelay` from 2000 to 0** — the consumer starts polling immediately - **Set `resultWaitTime(30000)`** on the mock endpoint — generous timeout for slow CI -- 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]
