davsclaus opened a new pull request, #24818: URL: https://github.com/apache/camel/pull/24818
_Claude Code on behalf of davsclaus_ ## Summary The `SmbStreamDownloadIT.testStreamDownload` test was reading the `InputStream` body *after* `mock.assertIsSatisfied()`, but by that point `GenericFileOnCompletion` has already fired `processStrategy.commit()` which calls `releaseRetrievedFileResources()` — closing the `SmbFileClosingInputStream` and its underlying SMB file handle. Reading a closed stream returns empty content. Fix: move the stream reading and assertions into a `process()` step inside the route where the stream is still open. The content is stashed in a header and verified after `assertIsSatisfied()`. ## Test plan - [x] `SmbStreamDownloadIT` passes (was failing consistently with `expected: <World\n> but was: <>`) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
