Skip to content

Commit bde775e

Browse files
authored
PYTHON-5911 - Mark test.test_server_selection_in_window.TestProse.tes… (#2905)
1 parent bb7a81f commit bde775e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

test/asynchronous/test_server_selection_in_window.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from pymongo.read_preferences import ReadPreference
3030
from test.asynchronous import AsyncIntegrationTest, async_client_context, unittest
3131
from test.asynchronous.helpers import ConcurrentRunner
32+
from test.asynchronous.utils import flaky
3233
from test.asynchronous.utils_selection_tests import create_topology
3334
from test.asynchronous.utils_spec_runner import AsyncSpecTestCreator
3435
from test.utils_shared import (
@@ -144,6 +145,7 @@ async def frequencies(self, client, listener, n_finds=10):
144145
sys.platform == "darwin" and platform.machine() == "arm64" and "CI" in os.environ,
145146
"PYTHON-5861: Load balancing frequency assertion is timing-sensitive on macOS ARM64 CI",
146147
)
148+
@flaky(reason="PYTHON-5911", affects_cpython_linux=True)
147149
async def test_load_balancing(self):
148150
listener = OvertCommandListener()
149151
cmap_listener = CMAPListener()

test/test_server_selection_in_window.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from pymongo.read_preferences import ReadPreference
3030
from test import IntegrationTest, client_context, unittest
3131
from test.helpers import ConcurrentRunner
32+
from test.utils import flaky
3233
from test.utils_selection_tests import create_topology
3334
from test.utils_shared import (
3435
CMAPListener,
@@ -144,6 +145,7 @@ def frequencies(self, client, listener, n_finds=10):
144145
sys.platform == "darwin" and platform.machine() == "arm64" and "CI" in os.environ,
145146
"PYTHON-5861: Load balancing frequency assertion is timing-sensitive on macOS ARM64 CI",
146147
)
148+
@flaky(reason="PYTHON-5911", affects_cpython_linux=True)
147149
def test_load_balancing(self):
148150
listener = OvertCommandListener()
149151
cmap_listener = CMAPListener()

0 commit comments

Comments
 (0)