Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-1065

synchro SRV tests are failing

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.2
    • Affects Version/s: None
    • Component/s: None
    • None

      motor synchro tests are failing:

       [2022/10/26 19:10:21.398] ERROR: test_connection_timeout_ms_propagates_to_DNS_resolver (test.test_client.ClientUnitTest)
       [2022/10/26 19:10:21.398] ----------------------------------------------------------------------
       [2022/10/26 19:10:21.398] Traceback (most recent call last):
       [2022/10/26 19:10:21.398]   File "/data/mci/c9535b20b31755f11bb05df7b54198dd/src/.tox/synchro37/tmp/mongo-python-driver/test/test_client.py", line 443, in test_connection_timeout_ms_propagates_to_DNS_resolver
       [2022/10/26 19:10:21.398]     pymongo.srv_resolver._resolve = patched_resolver
       [2022/10/26 19:10:21.398] AttributeError: module 'pymongo' has no attribute 'srv_resolver'
      

      https://evergreen.mongodb.com/task/motor_main__ssl~nossl_tox_env~synchro37_os~ubuntu_18_test_3.6_replica_set_d25e4bc1c614cc397d305cfbc4180b95f58ee8e0_22_10_26_18_58_41

      The problem is that these tests used to be skipped because dnspython was not installed. After PYTHON-3423, dnspython is a required dependency so these tests run. We need to update the imports in synchro to support the srv_resolver module.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: