Skip to content

Commit d8e18e6

Browse files
committed
Updated tests for CSHARP-5906
1 parent f98449a commit d8e18e6

2 files changed

Lines changed: 27 additions & 3 deletions

File tree

specifications/transactions/tests/unified/backpressure-retryable-writes.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,17 +412,31 @@
412412
"events": [
413413
{
414414
"commandStartedEvent": {
415-
"commandName": "insert"
415+
"command": {
416+
"startTransaction": true
417+
},
418+
"commandName": "insert",
419+
"databaseName": "transaction-tests"
416420
}
417421
},
418422
{
419423
"commandStartedEvent": {
420-
"commandName": "insert"
424+
"command": {
425+
"startTransaction": true
426+
},
427+
"commandName": "insert",
428+
"databaseName": "transaction-tests"
421429
}
422430
},
423431
{
424432
"commandStartedEvent": {
425-
"commandName": "abortTransaction"
433+
"command": {
434+
"startTransaction": {
435+
"$$exists": false
436+
}
437+
},
438+
"commandName": "abortTransaction",
439+
"databaseName": "admin"
426440
}
427441
}
428442
]

specifications/transactions/tests/unified/backpressure-retryable-writes.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,21 @@ tests:
239239
- client: *client0
240240
events:
241241
- commandStartedEvent:
242+
command:
243+
startTransaction: true
242244
commandName: insert
245+
databaseName: *database_name
243246
- commandStartedEvent:
247+
command:
248+
startTransaction: true
244249
commandName: insert
250+
databaseName: *database_name
245251
- commandStartedEvent:
252+
command:
253+
startTransaction:
254+
$$exists: false
246255
commandName: abortTransaction
256+
databaseName: admin
247257
outcome:
248258
- collectionName: *collection_name
249259
databaseName: *database_name

0 commit comments

Comments
 (0)