Skip to content

Commit

Permalink
Upadte runOnReqs for test_10_convenient_transactions_csot
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStapp committed Nov 1, 2024
1 parent b98b99a commit a364a91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/asynchronous/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,10 @@ async def find_raw_batches(*args, **kwargs):
if isinstance(res, (AsyncCommandCursor, AsyncCursor)):
await res.to_list()

# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#10-convenient-transactions
@async_client_context.require_transactions
@async_client_context.require_version_min(4, 4, -1)
@async_client_context.require_failCommand_fail_point
async def test_10_convenient_transactions_csot(self):
await self.client.db.coll.drop()

Expand Down
3 changes: 3 additions & 0 deletions test/test_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ def find_raw_batches(*args, **kwargs):
if isinstance(res, (CommandCursor, Cursor)):
res.to_list()

# https://github.com/mongodb/specifications/blob/master/source/client-side-operations-timeout/tests/README.md#10-convenient-transactions
@client_context.require_transactions
@client_context.require_version_min(4, 4, -1)
@client_context.require_failCommand_fail_point
def test_10_convenient_transactions_csot(self):
self.client.db.coll.drop()

Expand Down

0 comments on commit a364a91

Please sign in to comment.