Skip to content

Commit 2eb18f1

Browse files
authored
PYTHON-5428 Mark test_connection_close_does_not_block_other_operations as flaky (#2415)
1 parent 0b2900d commit 2eb18f1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/asynchronous/test_discovery_and_monitoring.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from asyncio import StreamReader, StreamWriter
2525
from pathlib import Path
2626
from test.asynchronous.helpers import ConcurrentRunner
27+
from test.asynchronous.utils import flaky
2728

2829
from pymongo.asynchronous.pool import AsyncConnection
2930
from pymongo.operations import _Op
@@ -378,6 +379,7 @@ async def test_pool_unpause(self):
378379
@async_client_context.require_failCommand_appName
379380
@async_client_context.require_test_commands
380381
@async_client_context.require_async
382+
@flaky(reason="PYTHON-5428")
381383
async def test_connection_close_does_not_block_other_operations(self):
382384
listener = CMAPHeartbeatListener()
383385
client = await self.async_single_client(

test/test_discovery_and_monitoring.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from asyncio import StreamReader, StreamWriter
2525
from pathlib import Path
2626
from test.helpers import ConcurrentRunner
27+
from test.utils import flaky
2728

2829
from pymongo.operations import _Op
2930
from pymongo.server_selectors import writable_server_selector
@@ -378,6 +379,7 @@ def test_pool_unpause(self):
378379
@client_context.require_failCommand_appName
379380
@client_context.require_test_commands
380381
@client_context.require_async
382+
@flaky(reason="PYTHON-5428")
381383
def test_connection_close_does_not_block_other_operations(self):
382384
listener = CMAPHeartbeatListener()
383385
client = self.single_client(

0 commit comments

Comments
 (0)