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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • None
    • Correctness

    Description

      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.

      Attachments

        Activity

          People

            devprod-correctness-team@mongodb.com [DO NOT ASSIGN] Backlog - DevProd Correctness
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: