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.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.4
    • None
    • None
    • None
    • Fully Compatible
    • Service Arch 2018-10-08

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: