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

Test Failure - test_database.TestDatabase.test_errors

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

      test_database.TestDatabase.test_errors fails rarely because the operationTime and $clusterTime fields change:

       FAILURE: {u'co[182 chars]399, 110), u'signature': {u'keyId': 6551234266[173 chars]110)} != {u'co[182 chars]399, 88), u'signature': {u'keyId': 65512342665[171 chars] 87)}
      Diff is 823 characters long. Set self.maxDiff to None to see it. (AssertionError)
       Traceback (most recent call last):
         File "/data/mci/9550dcd08a0c3bbe760871d261f5dee4/src/test/__init__.py", line 402, in wrap
           return f(*args, **kwargs)
         File "/data/mci/9550dcd08a0c3bbe760871d261f5dee4/src/test/test_database.py", line 420, in test_errors
           self.assertEqual(error, prev_error)
       AssertionError: {u'co[182 chars]399, 110), u'signature': {u'keyId': 6551234266[173 chars]110)} != {u'co[182 chars]399, 88), u'signature': {u'keyId': 65512342665[171 chars] 87)}
       Diff is 823 characters long. Set self.maxDiff to None to see it.
      

      We should pop these fields before comparing the command results.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: