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

Relax `.ignore()` requirements for `Status` and `StatusWith< T >` returning functions in `ASSERT_THROWS` type statements.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Service Arch 2018-10-08

      Although a function which reports its errors by both throwing and bad Status codes is a bad idea, that's no reason to inconvenience those who need to test such functions.  We should clean up those functions, but it shouldn't be necessary to explicitly ignore their status returns when testing their throw behavior – the test is sufficient to indicate that `Status` is ignored.

            Assignee:
            adam.martin@mongodb.com ADAM Martin (Inactive)
            Reporter:
            adam.martin@mongodb.com ADAM Martin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: