diff --git a/test/asynchronous/test_examples.py b/test/asynchronous/test_examples.py index 1312f1e215..9e9b208f51 100644 --- a/test/asynchronous/test_examples.py +++ b/test/asynchronous/test_examples.py @@ -1163,12 +1163,7 @@ async def callback(session): # Step 2: Start a client session. async with client.start_session() as session: # Step 3: Use with_transaction to start a transaction, execute the callback, and commit (or abort on error). - await session.with_transaction( - callback, - read_concern=ReadConcern("local"), - write_concern=wc_majority, - read_preference=ReadPreference.PRIMARY, - ) + await session.with_transaction(callback) # End Transactions withTxn API Example 1 diff --git a/test/test_examples.py b/test/test_examples.py index ef06a77b9a..28fe1beaff 100644 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -1161,12 +1161,7 @@ def callback(session): # Step 2: Start a client session. with client.start_session() as session: # Step 3: Use with_transaction to start a transaction, execute the callback, and commit (or abort on error). - session.with_transaction( - callback, - read_concern=ReadConcern("local"), - write_concern=wc_majority, - read_preference=ReadPreference.PRIMARY, - ) + session.with_transaction(callback) # End Transactions withTxn API Example 1