Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-414

Ensure GridFS spec tests fully iterate expected and actual collections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The GridFS spec test runner uses a MultipleIterator to compare expected and actual collections, but was not using the MIT_NEED_ANY flag, which lead to comparisons stopping when the first cursor was exhausted.

      Changing to MIT_NEED_ANY will also require we remove orphan chunks leftover from deleting a nonexistent file from the expected collection, since that is optional behavior and the spec tests intentionally do not assert that they are missing (while PHPLIB should do so).

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: