Make 'assert.throwsWithCode()' work with bulkWrite

XMLWordPrintableJSON

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

      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
            Reporter:
            Henri Nikku
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: