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

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.1
    • Affects Version/s: None
    • Component/s: Tests
    • None

      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}}
      ?                           +++++++++++++++++++++++
      

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

              Created:
              Updated:
              Resolved: