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

Update Transactions count test for MongoDB >= 4.0.7

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.8, 3.9
    • Affects Version/s: None
    • Component/s: Resyncing Spec Tests
    • None

      Drivers need to resync the transactions tests in order for them to pass on 4.0.7. The tests were updated in this commit: https://github.com/mongodb/specifications/commit/b3d819750fd52c2dc955a0a81d403a4aa31b19b4

      Note these tests depend on the runOn directive from DRIVERS-623. If you don't want to implement runOn support to and you're not worried about testing against 4.0.0 or 4.0.1 you can just replace this line in the failing count test from reads.json/reads.yml:

      -errorContains: "Cannot run 'count' in a multi-document transaction"
      +errorCodeName: OperationNotSupportedInTransaction
      

      For the v3.8 branch where runOn support is not added I will just make the
      errorCodeName change.

            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: