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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • 151
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Kaitlin Mahar
              Reporter:
              Kaitlin Mahar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: