Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5261

Use config_override when a test requires a certain configuration option value

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.1.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Mongoid test suite historically set individual option values as needed in each test. Sometimes these options weren't reset back to defaults, which could affect subsequent tests. When the options were reset, they sometimes were reset to what was the default at the time the test was written, not to the active runtime value, which would yield wrong behavior if the default was changed (as happened for 8.0).

      All tests which need specific local configuration option values should use config_override to correctly gain those values for the duration of the tests.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: