PYTHON-5492 Mark test as flaky (#2472)

This commit is contained in:
Steven Silvester 2025-08-14 13:54:24 -05:00 committed by GitHub
parent 3c786f5cd9
commit 1ffdedc7a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,7 @@ import random
import socket
import sys
import time
from test.asynchronous.utils import async_get_pool, async_joinall
from test.asynchronous.utils import async_get_pool, async_joinall, flaky
from bson.codec_options import DEFAULT_CODEC_OPTIONS
from bson.son import SON
@ -429,6 +429,7 @@ class TestPooling(_TestPoolingBase):
# maxConnecting = unbounded: 30+ connections in ~0.140+ seconds
print(len(pool.conns))
@flaky(reason="PYTHON-5492")
@async_client_context.require_failCommand_appName
async def test_csot_timeout_message(self):
client = await self.async_rs_or_single_client(appName="connectionTimeoutApp")

View File

@ -21,7 +21,7 @@ import random
import socket
import sys
import time
from test.utils import get_pool, joinall
from test.utils import flaky, get_pool, joinall
from bson.codec_options import DEFAULT_CODEC_OPTIONS
from bson.son import SON
@ -429,6 +429,7 @@ class TestPooling(_TestPoolingBase):
# maxConnecting = unbounded: 30+ connections in ~0.140+ seconds
print(len(pool.conns))
@flaky(reason="PYTHON-5492")
@client_context.require_failCommand_appName
def test_csot_timeout_message(self):
client = self.rs_or_single_client(appName="connectionTimeoutApp")