[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.
- is depended on by
-
PYTHON-1557 Release PyMongo 3.7
- Closed
- is related to
-
PYTHON-3529 Test Failure - test_list_databases sizeOnDisk changes between calls
- Closed
-
PYTHON-3747 [Failure] test_client.TestClient.test_list_databases
- Closed