This test occasionally fails
[2021/01/26 01:41:52.929] FAIL [5.254s]: test_load_balancing (test_server_selection_in_window.TestProse) [2021/01/26 01:41:52.929] ---------------------------------------------------------------------- [2021/01/26 01:41:52.929] Traceback (most recent call last): [2021/01/26 01:41:52.929] File "/data/mci/9ab469e6144782fa8b9fcb5b0d319826/src/test/__init__.py", line 485, in wrap [2021/01/26 01:41:52.929] return f(*args, **kwargs) [2021/01/26 01:41:52.929] File "/data/mci/9ab469e6144782fa8b9fcb5b0d319826/src/test/__init__.py", line 485, in wrap [2021/01/26 01:41:52.929] return f(*args, **kwargs) [2021/01/26 01:41:52.929] File "/data/mci/9ab469e6144782fa8b9fcb5b0d319826/src/test/test_server_selection_in_window.py", line 150, in test_load_balancing [2021/01/26 01:41:52.929] self.assertLessEqual(freqs[delayed_server], 0.25) [2021/01/26 01:41:52.929] AssertionError: 1.0 not less than or equal to 0.25
I suspect the issue is the test is not waiting until both mongos nodes are discovered.
- is related to
-
PYTHON-2584 Investigate if the default localThresholdMS=15 is the culprit behind various flaky tests
- Closed