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

Test Failure - test_list_databases sizeOnDisk changes between calls

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

      test_list_databases fails sometimes because the sizeOnDisk field changes between calls:

       [2022/11/17 18:45:38.664] FAIL [0.019s]: test_list_databases (test_client.TestClient)
       [2022/11/17 18:45:38.664] ----------------------------------------------------------------------
       [2022/11/17 18:45:38.664] Traceback (most recent call last):
       [2022/11/17 18:45:38.664]   File "/data/mci/b65dcc7e57783a6238aa31def72f14c8/src/test/test_client.py", line 794, in test_list_databases
       [2022/11/17 18:45:38.664]     self.assertEqual(helper_docs, cmd_docs)
       [2022/11/17 18:45:38.664] AssertionError: Lists differ: [{'na[151 chars]k': 151552, 'empty': False}, {'name': 'databas[340 chars]lse}] != [{'na[151 chars]k': 118784, 'empty': False}, {'name': 'databas[339 chars]lse}]
       [2022/11/17 18:45:38.664] First differing element 2:
       [2022/11/17 18:45:38.664] {'name': 'config', 'sizeOnDisk': 151552, 'empty': False}
       [2022/11/17 18:45:38.664] {'name': 'config', 'sizeOnDisk': 118784, 'empty': False}
       [2022/11/17 18:45:38.664] Diff is 943 characters long. Set self.maxDiff to None to see it.
      

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_ubuntu18_test_ssl__platform~ubuntu_18.04_auth_ssl~auth_ssl_python_version~3.10_coverage~coverage_test_rapid_replica_set_patch_3ab73905dc957c919112ad0def10ef27024659c8_63767dd67742ae14deee5bbd_22_11_17_18_30_47/logs?execution=0&sortBy=STATUS&sortDir=ASC

            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: