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

Add some way to automatically wrap all db commands in "assert.commandWorked" in jstests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Correctness

      Currently tests must manually wrap all db commands in an assertion to avoid failures that can be hard to diagnose if a command silently fails. Being able to opt in (or assume it is wanted if no assert.commandWorked calls are present) to automatic wrapping would be very useful.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: