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

Test Failure - test_client.TestClient.test_list_databases

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

       [2018/04/17 14:06:02.269] FAIL [0.010s]: test_list_databases (test_client.TestClient)
       [2018/04/17 14:06:02.269] ----------------------------------------------------------------------
       [2018/04/17 14:06:02.269] Traceback (most recent call last):
       [2018/04/17 14:06:02.269]   File "/data/mci/aa90d4cd188f8e7c9a20e97dbaf625c3/src/test/test_client.py", line 516, in test_list_databases
       [2018/04/17 14:06:02.269]     self.assertEqual(helper_docs, cmd_docs)
       [2018/04/17 14:06:02.269] AssertionError: Lists differ: [{'na[277 chars]e': 'test_lazy_connect_w0', 'sizeOnDisk': 8192[99 chars]lse}] != [{'na[277 chars]e': 'config', 'sizeOnDisk': 126976.0, 'empty': False}]
       [2018/04/17 14:06:02.269] First differing element 3:
       [2018/04/17 14:06:02.269] {'name': 'test_lazy_connect_w0', 'sizeOnDisk': 8192[38 chars]192}}
       [2018/04/17 14:06:02.269] {'name': 'config', 'sizeOnDisk': 126976.0, 'empty': False}
       [2018/04/17 14:06:02.269] First list contains 1 additional elements.
       [2018/04/17 14:06:02.269] First extra element 4:
       [2018/04/17 14:06:02.269] {'name': 'config', 'sizeOnDisk': 126976.0, 'empty': False}
       [2018/04/17 14:06:02.269]   [{'empty': False,
       [2018/04/17 14:06:02.269]     'name': 'pymongo_test',
       [2018/04/17 14:06:02.269]     'shards': {'sh01': 8192},
       [2018/04/17 14:06:02.269]     'sizeOnDisk': 8192},
       [2018/04/17 14:06:02.269]    {'empty': False,
       [2018/04/17 14:06:02.269]     'name': 'pymongo_test_bernie',
       [2018/04/17 14:06:02.269]     'shards': {'sh01': 8192},
       [2018/04/17 14:06:02.269]     'sizeOnDisk': 8192},
       [2018/04/17 14:06:02.269]    {'empty': False,
       [2018/04/17 14:06:02.269]     'name': 'pymongo_test_mike',
       [2018/04/17 14:06:02.269]     'shards': {'sh02': 8192},
       [2018/04/17 14:06:02.269]     'sizeOnDisk': 8192},
       [2018/04/17 14:06:02.269] -  {'empty': False,
       [2018/04/17 14:06:02.269] -   'name': 'test_lazy_connect_w0',
       [2018/04/17 14:06:02.269] -   'shards': {'sh02': 8192},
       [2018/04/17 14:06:02.269] -   'sizeOnDisk': 8192},
       [2018/04/17 14:06:02.269]    {'empty': False, 'name': 'config', 'sizeOnDisk': 126976.0}]
      

      Looks like a race condition with test_lazy_connect_w0.

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

              Created:
              Updated:
              Resolved: