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 @@ -594,7 +594,7 @@ async def test_case_1(self):
594
594
# Instantiate a collection object in the driver with a default write concern of { w: 0 }.
595
595
inner_coll = coll .with_options (write_concern = WriteConcern (w = 0 ))
596
596
# Insert the document { n: 1 } on the instantiated collection.
597
- inner_coll .insert_one ({"n" : 1 })
597
+ inner_coll .insert_one ({"n" : 1 }, session = s )
598
598
# Commit the transaction.
599
599
await s .commit_transaction ()
600
600
# End the session.
Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ def test_case_1(self):
582
582
# Instantiate a collection object in the driver with a default write concern of { w: 0 }.
583
583
inner_coll = coll .with_options (write_concern = WriteConcern (w = 0 ))
584
584
# Insert the document { n: 1 } on the instantiated collection.
585
- inner_coll .insert_one ({"n" : 1 })
585
+ inner_coll .insert_one ({"n" : 1 }, session = s )
586
586
# Commit the transaction.
587
587
s .commit_transaction ()
588
588
# End the session.
You can’t perform that action at this time.
0 commit comments