Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3292

iqe tests that use tally._save_events (or its callers) assume that all events have been processed, which is not always true

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • None
    • None
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False

      This is creating flakiness in the tests.

      Because the saveEvents endpoint is asynchronous, we need to update the tests to verify the events have been processed before performing subsequent actions that rely on them.

      The method should be updated to use the fetchEvents operation (polling) to check the database after, since we can’t rely on a synchronous response. There should be a (small) timeout so that the polling doesn't hang indefinitely.

              kflahert@redhat.com Kevin Flaherty
              khowell@redhat.com Kevin Howell
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: