PYTHON-5315 Mark test_recover_from_initially_erroring_seedlist as flaky (#2424)
This commit is contained in:
parent
04f2cc0fa9
commit
f29c7b1f15
@ -1411,7 +1411,7 @@ class TestCursor(AsyncIntegrationTest):
|
||||
async def test_to_list_csot_applied(self):
|
||||
client = await self.async_single_client(timeoutMS=500, w=1)
|
||||
coll = client.pymongo.test
|
||||
# Initialize the client with a larger timeout to help make test less flakey
|
||||
# Initialize the client with a larger timeout to help make test less flaky
|
||||
with pymongo.timeout(10):
|
||||
await coll.insert_many([{} for _ in range(5)])
|
||||
cursor = coll.find({"$where": delay(1)})
|
||||
@ -1453,7 +1453,7 @@ class TestCursor(AsyncIntegrationTest):
|
||||
async def test_command_cursor_to_list_csot_applied(self):
|
||||
client = await self.async_single_client(timeoutMS=500, w=1)
|
||||
coll = client.pymongo.test
|
||||
# Initialize the client with a larger timeout to help make test less flakey
|
||||
# Initialize the client with a larger timeout to help make test less flaky
|
||||
with pymongo.timeout(10):
|
||||
await coll.insert_many([{} for _ in range(5)])
|
||||
fail_command = {
|
||||
|
||||
@ -87,7 +87,7 @@ class TestPoolPausedError(AsyncIntegrationTest):
|
||||
async def test_pool_paused_error_is_retryable(self):
|
||||
if "PyPy" in sys.version:
|
||||
# Tracked in PYTHON-3519
|
||||
self.skipTest("Test is flakey on PyPy")
|
||||
self.skipTest("Test is flaky on PyPy")
|
||||
cmap_listener = CMAPListener()
|
||||
cmd_listener = OvertCommandListener()
|
||||
client = await self.async_rs_or_single_client(
|
||||
|
||||
@ -262,6 +262,7 @@ class TestSrvPolling(AsyncPyMongoTestCase):
|
||||
|
||||
await self._test_recover_from_initial(empty_seedlist)
|
||||
|
||||
@flaky(reason="PYTHON-5315")
|
||||
async def test_recover_from_initially_erroring_seedlist(self):
|
||||
def erroring_seedlist():
|
||||
raise ConfigurationError
|
||||
|
||||
@ -1402,7 +1402,7 @@ class TestCursor(IntegrationTest):
|
||||
def test_to_list_csot_applied(self):
|
||||
client = self.single_client(timeoutMS=500, w=1)
|
||||
coll = client.pymongo.test
|
||||
# Initialize the client with a larger timeout to help make test less flakey
|
||||
# Initialize the client with a larger timeout to help make test less flaky
|
||||
with pymongo.timeout(10):
|
||||
coll.insert_many([{} for _ in range(5)])
|
||||
cursor = coll.find({"$where": delay(1)})
|
||||
@ -1444,7 +1444,7 @@ class TestCursor(IntegrationTest):
|
||||
def test_command_cursor_to_list_csot_applied(self):
|
||||
client = self.single_client(timeoutMS=500, w=1)
|
||||
coll = client.pymongo.test
|
||||
# Initialize the client with a larger timeout to help make test less flakey
|
||||
# Initialize the client with a larger timeout to help make test less flaky
|
||||
with pymongo.timeout(10):
|
||||
coll.insert_many([{} for _ in range(5)])
|
||||
fail_command = {
|
||||
|
||||
@ -87,7 +87,7 @@ class TestPoolPausedError(IntegrationTest):
|
||||
def test_pool_paused_error_is_retryable(self):
|
||||
if "PyPy" in sys.version:
|
||||
# Tracked in PYTHON-3519
|
||||
self.skipTest("Test is flakey on PyPy")
|
||||
self.skipTest("Test is flaky on PyPy")
|
||||
cmap_listener = CMAPListener()
|
||||
cmd_listener = OvertCommandListener()
|
||||
client = self.rs_or_single_client(
|
||||
|
||||
@ -262,6 +262,7 @@ class TestSrvPolling(PyMongoTestCase):
|
||||
|
||||
self._test_recover_from_initial(empty_seedlist)
|
||||
|
||||
@flaky(reason="PYTHON-5315")
|
||||
def test_recover_from_initially_erroring_seedlist(self):
|
||||
def erroring_seedlist():
|
||||
raise ConfigurationError
|
||||
|
||||
Loading…
Reference in New Issue
Block a user