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

camel-mllp: replace Thread.sleep in tests

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.0
    • None
    • camel-mllp, tests
    • 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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nikita_konovalov Nikita_Konovalov
            orpiske Otavio Rodolfo Piske

            Dates

              Created:
              Updated:

              Slack

                Issue deployment