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

   Several Citrus tests poll with `repeatOnError` around a Groovy check, for 
example until a file is on the FTP server or an object is in a bucket. The 
checks failed with an `AssertionError` (a Groovy `assert`, or `throw new 
AssertionError`), and in Citrus 5.2 that is never retried:
   
   - `GroovyAction` wraps an `Exception` in a `CitrusRuntimeException`, but 
lets an `Error` through.
   - `RepeatOnErrorUntilTrue` retries only on `CitrusRuntimeException`.
   
   So such a test failed at the first try instead of polling, which makes it 
flaky when the system under test is a little slow.
   
   This changes the five scripts used inside `repeatOnError` to throw 
`CitrusRuntimeException`: `aws/firehose/verifyDelivery.groovy`, 
`ceph/verifyObject.groovy`, `ftp/verifyUpload.groovy`, 
`smpp/smppsim-verify-submit.groovy` and `ssh/verifyUpload.groovy`. The two 
DynamoDB scripts already turn their `AssertionError` into one. A check that 
passes behaves as before.
   
   Local run: `FileIT` 13/13, which covers the ftp and ssh scripts.
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9


-- 
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