Fix mock_kms.js mock server startup wait

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Security 2021-02-22
    • 11
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      mock_kms.js needs to call clearRawMongoProgramOutput() before checking rawMongoProgramOutput() for certain strings. Today, the test does not clear the log and this can cause the mock.js to erroneously believe the mock server has started when it is used multiple times in a single test.

      There are other mocks that share the same issue
      jstests/free_mon/libs/free_mon.js
      jstests/noPassthrough/libs/configExpand/lib.js

            Assignee:
            Mark Benvenuto
            Reporter:
            Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: