Skip to content

Commit 657fcc2

Browse files
committed
Fix nested session test
1 parent 89641f5 commit 657fcc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/asynchronous/test_session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@ async def test_bind_session(self):
404404

405405
# Nested sessions.
406406
session1 = self.client.start_session(bind=True)
407-
with session1:
407+
async with session1:
408408
session2 = self.client.start_session(bind=True)
409-
with session2:
409+
async with session2:
410410
coll.find_one() # uses session2
411411
coll.find_one() # uses session1
412412
coll.find_one() # uses implicit session

0 commit comments

Comments
 (0)