Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.0.0
-
Novice
Description
We have many tests which use Thread.sleep for synchronization. This is bug prone and can introduce flakiness when running on environments with different capacities.
Ideally we should replace these with:
- Awaitility
- Java's native syncronization mechanism (Latches, Phasers, Locks, etc)
- Nothing (i.e.; in some cases the sleep can simply be removed)
Attachments
Attachments
Issue Links
- is a clone of
-
CAMEL-19514 camel-aws: replace Thread.sleep in tests
- Open
- links to