Increase threshold for slow primaryOnlyService in unittest to avoid test failure in slow environment

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Repl 2023-04-03, Repl 2023-04-17
    • 42
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In unittest PrimaryOnlyServiceLogSlowServices, we expect every PrimaryOnlyService to stepUp in 200ms if everything works normal. However, in some slow test environment(e.g. Windows-Debug), it usually takes longer than 200ms to complete stepUp.

      In this case, we should configure the threshold to be way longer than 200ms in unittests, for example, 5s.

            Assignee:
            Jiawei Yang
            Reporter:
            Jiawei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: