Skip to content

Commit

Permalink
PYTHON-4398 Close mongos test clients to avoid thread build up (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed May 21, 2024
1 parent 594daca commit 8456293
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unified_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,12 @@ def setUpClass(cls):
if "retryable-writes" in cls.TEST_SPEC["description"]:
raise unittest.SkipTest("MMAPv1 does not support retryWrites=True")

@classmethod
def tearDownClass(cls):
for client in cls.mongos_clients:
client.close()
super().tearDownClass()

def setUp(self):
super().setUp()
# process schemaVersion
Expand Down

0 comments on commit 8456293

Please sign in to comment.