File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -3481,7 +3481,6 @@ class TestNoSessionsSupport(AsyncEncryptionIntegrationTest):
3481
3481
mongocryptd_client : AsyncMongoClient
3482
3482
MONGOCRYPTD_PORT = 27020
3483
3483
3484
- @flaky # PYTHON-4982
3485
3484
async def asyncSetUp (self ) -> None :
3486
3485
await super ().asyncSetUp ()
3487
3486
start_mongocryptd (self .MONGOCRYPTD_PORT )
@@ -3494,7 +3493,6 @@ async def asyncSetUp(self) -> None:
3494
3493
hello = await self .mongocryptd_client .db .command ("hello" )
3495
3494
self .assertNotIn ("logicalSessionTimeoutMinutes" , hello )
3496
3495
3497
- @flaky # PYTHON-4982
3498
3496
async def test_implicit_session_ignored_when_unsupported (self ):
3499
3497
self .listener .reset ()
3500
3498
with self .assertRaises (OperationFailure ):
@@ -3507,6 +3505,8 @@ async def test_implicit_session_ignored_when_unsupported(self):
3507
3505
3508
3506
self .assertNotIn ("lsid" , self .listener .started_events [1 ].command )
3509
3507
3508
+ await self .mongocryptd_client .close ()
3509
+
3510
3510
async def test_explicit_session_errors_when_unsupported (self ):
3511
3511
self .listener .reset ()
3512
3512
async with self .mongocryptd_client .start_session () as s :
@@ -3519,6 +3519,8 @@ async def test_explicit_session_errors_when_unsupported(self):
3519
3519
):
3520
3520
await self .mongocryptd_client .db .test .insert_one ({"x" : 1 }, session = s )
3521
3521
3522
+ await self .mongocryptd_client .close ()
3523
+
3522
3524
3523
3525
if __name__ == "__main__" :
3524
3526
unittest .main ()
Original file line number Diff line number Diff line change @@ -3463,7 +3463,6 @@ class TestNoSessionsSupport(EncryptionIntegrationTest):
3463
3463
mongocryptd_client : MongoClient
3464
3464
MONGOCRYPTD_PORT = 27020
3465
3465
3466
- @flaky # PYTHON-4982
3467
3466
def setUp (self ) -> None :
3468
3467
super ().setUp ()
3469
3468
start_mongocryptd (self .MONGOCRYPTD_PORT )
@@ -3476,7 +3475,6 @@ def setUp(self) -> None:
3476
3475
hello = self .mongocryptd_client .db .command ("hello" )
3477
3476
self .assertNotIn ("logicalSessionTimeoutMinutes" , hello )
3478
3477
3479
- @flaky # PYTHON-4982
3480
3478
def test_implicit_session_ignored_when_unsupported (self ):
3481
3479
self .listener .reset ()
3482
3480
with self .assertRaises (OperationFailure ):
@@ -3489,6 +3487,8 @@ def test_implicit_session_ignored_when_unsupported(self):
3489
3487
3490
3488
self .assertNotIn ("lsid" , self .listener .started_events [1 ].command )
3491
3489
3490
+ self .mongocryptd_client .close ()
3491
+
3492
3492
def test_explicit_session_errors_when_unsupported (self ):
3493
3493
self .listener .reset ()
3494
3494
with self .mongocryptd_client .start_session () as s :
@@ -3501,6 +3501,8 @@ def test_explicit_session_errors_when_unsupported(self):
3501
3501
):
3502
3502
self .mongocryptd_client .db .test .insert_one ({"x" : 1 }, session = s )
3503
3503
3504
+ self .mongocryptd_client .close ()
3505
+
3504
3506
3505
3507
if __name__ == "__main__" :
3506
3508
unittest .main ()
You can’t perform that action at this time.
0 commit comments