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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD