Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19526

camel-jms: replace Thread.sleep in tests

    XMLWordPrintableJSON

Details

    • Moderate

    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

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: