Skip to content

Commit a0eae81

Browse files
committed
update test
1 parent e3c6dab commit a0eae81

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 (await coll.count_documents({})) == 1
602+
assert (await coll.find_one({"n": 1})) is not None
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.find_one({"n": 1})) is not None
591591

592592

593593
if __name__ == "__main__":

0 commit comments

Comments
 (0)