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

Ensure GridFS spec tests fully iterate expected and actual collections

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: