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

assert.commandWorked() should check for writeConcernError()

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

      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@mongodb.com David Bradford (Inactive)
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: