File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -599,7 +599,7 @@ async def test_case_1(self):
599
599
await s .commit_transaction ()
600
600
# End the session.
601
601
# 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
603
603
604
604
605
605
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -587,7 +587,7 @@ def test_case_1(self):
587
587
s .commit_transaction ()
588
588
# End the session.
589
589
# 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
591
591
592
592
593
593
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments