Skip to content

Commit e3d99bd

Browse files
committed
address teardown failures in data lake tests
1 parent bc00e6f commit e3d99bd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: test/asynchronous/test_data_lake.py

+3
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,20 @@ async def test_1(self):
8080
self.assertEqual(cursor_ns, target_ns)
8181

8282
self.assertIn(cursor_id, succeeded.reply["cursorsKilled"])
83+
await client.close()
8384

8485
# Test no auth
8586
async def test_2(self):
8687
client = await self.async_rs_client_noauth()
8788
await client.admin.command("ping")
89+
await client.close()
8890

8991
# Test with auth
9092
async def test_3(self):
9193
for mechanism in ["SCRAM-SHA-1", "SCRAM-SHA-256"]:
9294
client = await self.async_rs_or_single_client(authMechanism=mechanism)
9395
await client[self.TEST_DB][self.TEST_COLLECTION].find_one()
96+
await client.close()
9497

9598

9699
# Location of JSON test specifications.

Diff for: test/test_data_lake.py

+3
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,20 @@ def test_1(self):
8080
self.assertEqual(cursor_ns, target_ns)
8181

8282
self.assertIn(cursor_id, succeeded.reply["cursorsKilled"])
83+
client.close()
8384

8485
# Test no auth
8586
def test_2(self):
8687
client = self.rs_client_noauth()
8788
client.admin.command("ping")
89+
client.close()
8890

8991
# Test with auth
9092
def test_3(self):
9193
for mechanism in ["SCRAM-SHA-1", "SCRAM-SHA-256"]:
9294
client = self.rs_or_single_client(authMechanism=mechanism)
9395
client[self.TEST_DB][self.TEST_COLLECTION].find_one()
96+
client.close()
9497

9598

9699
# Location of JSON test specifications.

0 commit comments

Comments
 (0)