Skip to content

Commit 1ffdedc

Browse files
authored
PYTHON-5492 Mark test as flaky (#2472)
1 parent 3c786f5 commit 1ffdedc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/asynchronous/test_pooling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import socket
2222
import sys
2323
import time
24-
from test.asynchronous.utils import async_get_pool, async_joinall
24+
from test.asynchronous.utils import async_get_pool, async_joinall, flaky
2525

2626
from bson.codec_options import DEFAULT_CODEC_OPTIONS
2727
from bson.son import SON
@@ -429,6 +429,7 @@ async def find_one():
429429
# maxConnecting = unbounded: 30+ connections in ~0.140+ seconds
430430
print(len(pool.conns))
431431

432+
@flaky(reason="PYTHON-5492")
432433
@async_client_context.require_failCommand_appName
433434
async def test_csot_timeout_message(self):
434435
client = await self.async_rs_or_single_client(appName="connectionTimeoutApp")

test/test_pooling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import socket
2222
import sys
2323
import time
24-
from test.utils import get_pool, joinall
24+
from test.utils import flaky, get_pool, joinall
2525

2626
from bson.codec_options import DEFAULT_CODEC_OPTIONS
2727
from bson.son import SON
@@ -429,6 +429,7 @@ def find_one():
429429
# maxConnecting = unbounded: 30+ connections in ~0.140+ seconds
430430
print(len(pool.conns))
431431

432+
@flaky(reason="PYTHON-5492")
432433
@client_context.require_failCommand_appName
433434
def test_csot_timeout_message(self):
434435
client = self.rs_or_single_client(appName="connectionTimeoutApp")

0 commit comments

Comments
 (0)