Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-92673

Increase assertion timeout of health observer tests

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc14
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch
    • Fully Compatible
    • v7.0, v6.0, v5.0
    • Networking & Obs 2024-07-22
    • 0

      The health observer test suite defines an assertSoon helper function, which by default waits for 10 seconds for the provided predicate to evaluate to true before failing the test. This is too short of a timeout to allow an observer to retry after hitting its own deadline timeout, which can make the tests susceptible to transient failures (e.g. the DNS health observer's deadline is 10 seconds as well).

      We should increase this timeout to give the observers being tested a chance to retry, which should improve the stability of these tests.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: