davsclaus commented on PR #8795:
URL: https://github.com/apache/camel/pull/8795#issuecomment-1343022169

   No on completion happens after mock assertion. 
   
   There is an method on mock that can be used to test for file exists in a 
safer way without having to sleep (expectedFileExists) but there is no API for 
testing that a file is to be delted.
   
   Instead of using sleep you can use the availability library which has a 
nicer API.
   
   Something along the way
   
   Awaitility.waitAtMost(5, TimeUnit.SECONDS).until(() -> counter.get() > 1);
   
   


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