Fix comment_field_passthrough.js failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Fully Compatible
    • ALL
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      comment_field_passthrough.js fails after SERVER-126423 merged the $_internalDocumentResultsAndMetadata translation function.

      The test in commands_lib.js correctly marks the DRM test case with expectFailWithErrorCodes: [40228] because $collStats does not produce the {_streamType, payload} format that the translation function's $replaceRoot expects. However, comment_field_passthrough.js only checks testCase.expectFail (boolean), not testCase.expectFailWithErrorCodes (array), so it doesn't recognize the expected failure.

      Fix: Update comment_field_passthrough.js to also check testCase.expectFailWithErrorCodes when determining if a command failure is expecte

            Assignee:
            Aditya Deshpande
            Reporter:
            Aditya Deshpande
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: