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):
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
605605if __name__ == "__main__" :
Original file line number Diff line number Diff 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
593593if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments