Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5495

Use polling instead of waiting a safe amount of time when testing observing managers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 4.5.14, 5.0.5, 5.1.2, 5.2
    • None
    • None
    • None

    Description

      Instead of waiting 6 seconds to make sure that the manager has updated before testing that it did it correctly we should wait 1 second, then poll repeatedly until we see the desired change. If it doesn't happen in 10 seconds we can give up and let the test fail.

      For the two tests concerned, ConfiguredRendererManagerTest and ConfiguredTemplateDefinitionManagerTest this saves us 10 seconds in the build.

      See also MGNLUI-2411 where the savings are bigger.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                tmattsson Tobias Mattsson
                tmattsson Tobias Mattsson
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD