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

Make 'assert.throwsWithCode()' work with bulkWrite

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization

      It's currently a bit tricky to assert in a jstest that a bulkWrite() fails with some error code, because 'assert.throwsWithCode()' can't pull the error codes from 'BulkWriteError.writeErrors[]'. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            henri.nikku@mongodb.com Henri Nikku
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: