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

Fix mock_kms.js mock server startup wait

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2021-02-22
    • 11

    Description

      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

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: