Skip to content

Commit e2ccde7

Browse files
committed
update tests
1 parent a3375fb commit e2ccde7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/test_transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ async def test_case_1(self):
599599
await s.commit_transaction()
600600
# End the session.
601601
# Ensure the document was inserted and no error was thrown from the transaction.
602-
assert coll.count_documents() == 1
602+
assert coll.count_documents({}) == 1
603603

604604

605605
if __name__ == "__main__":

test/test_transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def test_case_1(self):
587587
s.commit_transaction()
588588
# End the session.
589589
# Ensure the document was inserted and no error was thrown from the transaction.
590-
assert coll.count_documents() == 1
590+
assert coll.count_documents({}) == 1
591591

592592

593593
if __name__ == "__main__":

0 commit comments

Comments
 (0)