Skip to content

Commit d86970c

Browse files
authored
Sync transaction spec tests (#1228)
1 parent 893d683 commit d86970c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

spec/spec_tests/data/transactions/error-labels.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ tests:
487487
mode: { times: 2 }
488488
data:
489489
failCommands: ["commitTransaction"]
490-
errorCode: 11602 # InterruptedDueToReplStateChange
490+
errorCode: 11602 # InterruptedDueToStepDown
491491

492492
operations:
493493
- name: startTransaction
@@ -825,7 +825,7 @@ tests:
825825
data:
826826
failCommands: ["commitTransaction"]
827827
writeConcernError:
828-
code: 100 # UnsatisfiableWriteConcern/CannotSatisfyWriteConcern
828+
code: 100 # UnsatisfiableWriteConcern
829829
errmsg: Not enough data-bearing nodes
830830

831831
operations:

spec/spec_tests/data/transactions/retryable-abort.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ tests:
459459
collection:
460460
data: []
461461

462-
- description: abortTransaction succeeds after InterruptedDueToReplStateChange
462+
- description: abortTransaction succeeds after InterruptedDueToStepDown
463463

464464
failPoint:
465465
configureFailPoint: failCommand
@@ -1069,7 +1069,7 @@ tests:
10691069
collection:
10701070
data: []
10711071

1072-
- description: abortTransaction succeeds after WriteConcernError InterruptedDueToReplStateChange
1072+
- description: abortTransaction succeeds after WriteConcernError InterruptedDueToStepDown
10731073

10741074
failPoint:
10751075
configureFailPoint: failCommand

spec/spec_tests/data/transactions/retryable-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ tests:
487487
data:
488488
- _id: 1
489489

490-
- description: commitTransaction succeeds after InterruptedDueToReplStateChange
490+
- description: commitTransaction succeeds after InterruptedDueToStepDown
491491

492492
failPoint:
493493
configureFailPoint: failCommand
@@ -1106,7 +1106,7 @@ tests:
11061106
data:
11071107
- _id: 1
11081108

1109-
- description: commitTransaction succeeds after WriteConcernError InterruptedDueToReplStateChange
1109+
- description: commitTransaction succeeds after WriteConcernError InterruptedDueToStepDown
11101110

11111111
failPoint:
11121112
configureFailPoint: failCommand

spec/spec_tests/data/transactions/transaction-options.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ tests:
511511

512512
outcome: *outcome
513513

514-
- description: readConcern local in startTransaction options
514+
- description: readConcern snapshot in startTransaction options
515515

516516
sessionOptions:
517517
session0:

0 commit comments

Comments
 (0)