Client sends incorrect read preference to standalones

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In test/mockupdb/test_op_msg_read_preference.py it states "For single mongod we send primaryPreferred instead of primary." and then replaces ReadPreference.Primary with ReadPreference.PrimaryPreferred. However, this is not true for command operations and it causes a test failure.

      For more background see this comment thread from PYTHON-2773 (fix Mockupdb test failures): https://github.com/mongodb/mongo-python-driver/pull/796#discussion_r751472738

              Assignee:
              Shane Harvey
              Reporter:
              Julius Park (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: