assert.commandWorked() should check for writeConcernError()

XMLWordPrintableJSON

    • Fully Compatible
    • TIG 2018-03-12, TIG 2018-03-26
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      assert.commandWorked({..., w:'majority'}) should imply that the operation succeeded with the necessary write concern. We can have a separate assert.commandWorkedIgnoreWriteConcern() for the few cases where we explicitly want to test the command succeeding but failing to replicate to the specified write concern.

            Assignee:
            David Bradford (Inactive)
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: