PYTHON-4398 Close mongos test clients to avoid thread build up (#1643)

This commit is contained in:
Shane Harvey 2024-05-21 11:30:43 -07:00 committed by GitHub
parent 594dacaaf9
commit 8456293da2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1030,6 +1030,12 @@ class UnifiedSpecTestMixinV1(IntegrationTest):
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