Skip to content

Commit b2ddcc0

Browse files
committed
fix flaky test setup
1 parent 3cace1a commit b2ddcc0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/asynchronous/test_encryption.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3481,6 +3481,7 @@ class TestNoSessionsSupport(AsyncEncryptionIntegrationTest):
34813481
mongocryptd_client: AsyncMongoClient
34823482
MONGOCRYPTD_PORT = 27020
34833483

3484+
@flaky # PYTHON-4982
34843485
async def asyncSetUp(self) -> None:
34853486
await super().asyncSetUp()
34863487
start_mongocryptd(self.MONGOCRYPTD_PORT)
@@ -3493,8 +3494,6 @@ async def asyncSetUp(self) -> None:
34933494
hello = await self.mongocryptd_client.db.command("hello")
34943495
self.assertNotIn("logicalSessionTimeoutMinutes", hello)
34953496

3496-
# PYTHON-4982
3497-
@flaky
34983497
async def test_implicit_session_ignored_when_unsupported(self):
34993498
self.listener.reset()
35003499
with self.assertRaises(OperationFailure):

test/test_encryption.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,6 +3463,7 @@ class TestNoSessionsSupport(EncryptionIntegrationTest):
34633463
mongocryptd_client: MongoClient
34643464
MONGOCRYPTD_PORT = 27020
34653465

3466+
@flaky # PYTHON-4982
34663467
def setUp(self) -> None:
34673468
super().setUp()
34683469
start_mongocryptd(self.MONGOCRYPTD_PORT)
@@ -3475,8 +3476,6 @@ def setUp(self) -> None:
34753476
hello = self.mongocryptd_client.db.command("hello")
34763477
self.assertNotIn("logicalSessionTimeoutMinutes", hello)
34773478

3478-
# PYTHON-4982
3479-
@flaky
34803479
def test_implicit_session_ignored_when_unsupported(self):
34813480
self.listener.reset()
34823481
with self.assertRaises(OperationFailure):

0 commit comments

Comments
 (0)