Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2376

Test failures on latest due to new updateDescription.truncatedArrays field in changeEvent documents

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.11.1
    • Tests
    • None

    Description

      SERVER-47354 added a truncatedArrays field to the updateDescription documents returned by the server. As a result, some change stream tests are failing on latest:

      FAILURE: {'updatedFields': {'new': 1}, 'removedFields': ['foo']} != {'updatedFields': {'new': 1}, 'removedFields': ['foo'], 'truncatedArrays': []}
      - {'removedFields': ['foo'], 'updatedFields': {'new': 1}}
      + {'removedFields': ['foo'], 'truncatedArrays': [], 'updatedFields': {'new': 1}}
      ?                           +++++++++++++++++++++++
       (AssertionError)
      Traceback (most recent call last):
        File "/data/mci/efccbde909ca7f9d9e7e8f6961014711/src/test/test_change_stream.py", line 372, in test_change_operations
          change['updateDescription'])
      AssertionError: {'updatedFields': {'new': 1}, 'removedFields': ['foo']} != {'updatedFields': {'new': 1}, 'removedFields': ['foo'], 'truncatedArrays': []}
      - {'removedFields': ['foo'], 'updatedFields': {'new': 1}}
      + {'removedFields': ['foo'], 'truncatedArrays': [], 'updatedFields': {'new': 1}}
      ?                           +++++++++++++++++++++++
      

      Attachments

        Issue Links

          Activity

            People

              prashant.mital Prashant Mital (Inactive)
              prashant.mital Prashant Mital (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: