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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.0
    • Labels:
      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

            Assignee:
            jmikola Jeremy Mikola
            Reporter:
            jmikola Jeremy Mikola
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: