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

Remove unnecessary assertions on results length in jstests

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Security

      There have been several instances of false positive BFs due to the number of results returned being higher than expected. These false positives are sometimes caused by unrelated system behaviors on the server that add extra results.

      To reduce these false positives, modify the tests to avoid asserting on the exact number of results when possible. Instead, assert that the expected documents or results are included in the returned data.

      Refer to examples in BF-29038, BF-34560 for similar cases.

            Assignee:
            Unassigned Unassigned
            Reporter:
            adrian.gonzalez@mongodb.com Adrian Gonzalez Montemayor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: