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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Repl 2023-04-03, Repl 2023-04-17
    • 42

    Description

      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.

      Attachments

        Activity

          People

            jiawei.yang@mongodb.com Jiawei Yang
            jiawei.yang@mongodb.com Jiawei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: