davsclaus opened a new pull request, #31355:
URL: https://github.com/apache/camel/pull/31355

   ## What was wrong
   
   `AS2ClientSendTest.sendTheFilesOfAFolder` fails now and then (it passes on 
the surefire retry):
   
   ```
   expected: <[UNB+...]> but was: <[UNB+..., UNB+...]>
   ```
   
   Its files route reads every `*.edi` file of the static `@TempDir` inbox, and 
`sendFile()` leaves `message.edi` there. When JUnit runs `sendFile()` first, 
the route sends two messages.
   
   ## What changed
   
   Test only: the files route reads a subfolder of its own (`inbox/folder`), so 
the files of the other tests are not picked up.
   
   ## Tests
   
   With 
`-Djunit.jupiter.testmethod.order.default=org.junit.jupiter.api.MethodOrderer$MethodName`
 (which runs `sendFile` before `sendTheFilesOfAFolder`), the test fails every 
time before this change and passes after it; all 9 tests of the class are green.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 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]

Reply via email to