diff --git a/test/asynchronous/test_server_selection_in_window.py b/test/asynchronous/test_server_selection_in_window.py index 24a5789733..b631cebf68 100644 --- a/test/asynchronous/test_server_selection_in_window.py +++ b/test/asynchronous/test_server_selection_in_window.py @@ -29,6 +29,7 @@ from pymongo.read_preferences import ReadPreference from test.asynchronous import AsyncIntegrationTest, async_client_context, unittest from test.asynchronous.helpers import ConcurrentRunner +from test.asynchronous.utils import flaky from test.asynchronous.utils_selection_tests import create_topology from test.asynchronous.utils_spec_runner import AsyncSpecTestCreator from test.utils_shared import ( @@ -144,6 +145,7 @@ async def frequencies(self, client, listener, n_finds=10): sys.platform == "darwin" and platform.machine() == "arm64" and "CI" in os.environ, "PYTHON-5861: Load balancing frequency assertion is timing-sensitive on macOS ARM64 CI", ) + @flaky(reason="PYTHON-5911", affects_cpython_linux=True) async def test_load_balancing(self): listener = OvertCommandListener() cmap_listener = CMAPListener() diff --git a/test/test_server_selection_in_window.py b/test/test_server_selection_in_window.py index 547965095c..7b561d93db 100644 --- a/test/test_server_selection_in_window.py +++ b/test/test_server_selection_in_window.py @@ -29,6 +29,7 @@ from pymongo.read_preferences import ReadPreference from test import IntegrationTest, client_context, unittest from test.helpers import ConcurrentRunner +from test.utils import flaky from test.utils_selection_tests import create_topology from test.utils_shared import ( CMAPListener, @@ -144,6 +145,7 @@ def frequencies(self, client, listener, n_finds=10): sys.platform == "darwin" and platform.machine() == "arm64" and "CI" in os.environ, "PYTHON-5861: Load balancing frequency assertion is timing-sensitive on macOS ARM64 CI", ) + @flaky(reason="PYTHON-5911", affects_cpython_linux=True) def test_load_balancing(self): listener = OvertCommandListener() cmap_listener = CMAPListener()