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

Test Failure - test_client.TestClient.test_unix_socket (SSL)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None
    • Fully Compatible

      This test fails when testing with SSL. We could disable the test when SSL is enabled.

      ======================================================================
      ERROR: test_unix_socket (test_client.TestClient)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/data/mci/30d080040ebf1ddd6f99adc8166316e4/src/test/test_client.py", line 608, in test_unix_socket
          client.pymongo_test.test.insert_one({"dummy": "object"})
        File "/data/mci/30d080040ebf1ddd6f99adc8166316e4/src/pymongo/collection.py", line 654, in insert_one
          with self._socket_for_writes() as sock_info:
        File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
          return self.gen.next()
        File "/data/mci/30d080040ebf1ddd6f99adc8166316e4/src/pymongo/mongo_client.py", line 823, in _get_socket
          server = self._get_topology().select_server(selector)
        File "/data/mci/30d080040ebf1ddd6f99adc8166316e4/src/pymongo/topology.py", line 214, in select_server
          address))
        File "/data/mci/30d080040ebf1ddd6f99adc8166316e4/src/pymongo/topology.py", line 189, in select_servers
          self._error_message(selector))
      ServerSelectionTimeoutError: hostname '/tmp/mongodb-27017.sock' doesn't match either of 'localhost', '127.0.0.1'
      

            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: