Skip to content

Commit a364a91

Browse files
committed
Upadte runOnReqs for test_10_convenient_transactions_csot
1 parent b98b99a commit a364a91

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/asynchronous/test_transactions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,10 @@ async def find_raw_batches(*args, **kwargs):
387387
if isinstance(res, (AsyncCommandCursor, AsyncCursor)):
388388
await res.to_list()
389389

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

test/test_transactions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,10 @@ def find_raw_batches(*args, **kwargs):
379379
if isinstance(res, (CommandCursor, Cursor)):
380380
res.to_list()
381381

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

0 commit comments

Comments
 (0)