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

Print out command response in assertions on response in bulkWrite js tests

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.2.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • 151

    Description

      In the bulkWrite jstests we assert extensively on values from responses to the bulkWrite command. However, when these assertions fail they can be very difficult to debug because we don't print out the full command response. E.g. in BF-30586 we can't say definitively which error we expected to see in the response but didn't see.

      We should augment the assert.eq calls with a message to print out the response in the case that they fail.

      Attachments

        Activity

          People

            kaitlin.mahar@mongodb.com Kaitlin Mahar
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: