Skip to content

Commit eb6dc40

Browse files
CSHARP-2858: mongos pinning test expects no unpinning on MaxTimeoutMSExpired.
1 parent 73a3f4e commit eb6dc40

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

tests/MongoDB.Driver.Tests/Specifications/transactions-convenient-api/tests/commit-retry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,4 +525,4 @@
525525
}
526526
}
527527
]
528-
}
528+
}

tests/MongoDB.Driver.Tests/Specifications/transactions-convenient-api/tests/commit-retry.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,4 +321,4 @@ tests:
321321
# In reality, the outcome of the commit is unknown but we fabricate
322322
# the error with failCommand.errorCode which does not apply the commit
323323
# operation.
324-
data: []
324+
data: []

tests/MongoDB.Driver.Tests/Specifications/transactions-convenient-api/tests/commit-writeconcernerror.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,4 +599,4 @@
599599
}
600600
}
601601
]
602-
}
602+
}

tests/MongoDB.Driver.Tests/Specifications/transactions-convenient-api/tests/commit-writeconcernerror.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,4 @@ tests:
213213
errorLabelsOmit: ["TransientTransactionError"]
214214
expectations: *expectations_without_retries
215215
# failCommand with writeConcernError still applies the write operation(s)
216-
outcome: *outcome
216+
outcome: *outcome

tests/MongoDB.Driver.Tests/Specifications/transactions/tests/pin-mongos.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@
875875
"failCommands": [
876876
"commitTransaction"
877877
],
878-
"errorCode": 50
878+
"errorCode": 51
879879
}
880880
}
881881
}
@@ -887,7 +887,7 @@
887887
"errorLabelsOmit": [
888888
"TransientTransactionError"
889889
],
890-
"errorCode": 50
890+
"errorCode": 51
891891
}
892892
},
893893
{

tests/MongoDB.Driver.Tests/Specifications/transactions/tests/pin-mongos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ tests:
317317
insertedIds: {0: 3, 1: 4}
318318
# Session is pinned.
319319
- *assertSessionPinned
320-
# Fail the commit with a non-transient error, eg MaxTimeMSExpired.
320+
# Fail the commit with a non-transient error.
321321
- name: targetedFailPoint
322322
object: testRunner
323323
arguments:
@@ -327,12 +327,12 @@ tests:
327327
mode: { times: 1 }
328328
data:
329329
failCommands: ["commitTransaction"]
330-
errorCode: 50 # MaxTimeMSExpired
330+
errorCode: 51 # ManualInterventionRequired
331331
- name: commitTransaction
332332
object: session0
333333
result:
334334
errorLabelsOmit: ["TransientTransactionError"]
335-
errorCode: 50
335+
errorCode: 51
336336
- *assertSessionPinned
337337
# The next commit should succeed.
338338
- name: commitTransaction

0 commit comments

Comments
 (0)