Skip to content

Commit 7be670e

Browse files
jmikolakevinAlbs
authored andcommitted
CDRIVER-3966 Sync transaction spec tests (#786)
Syncs transaction spec tests with mongodb/specifications@ec32686. One change was missed in 2d7938a.
1 parent 0966559 commit 7be670e

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

src/libmongoc/tests/json/transactions/unified/mongos-unpin.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,55 @@
185185
}
186186
]
187187
},
188+
{
189+
"description": "unpin after non-transient error on abort",
190+
"operations": [
191+
{
192+
"name": "startTransaction",
193+
"object": "session0"
194+
},
195+
{
196+
"name": "insertOne",
197+
"object": "collection0",
198+
"arguments": {
199+
"document": {
200+
"x": 1
201+
},
202+
"session": "session0"
203+
}
204+
},
205+
{
206+
"name": "targetedFailPoint",
207+
"object": "testRunner",
208+
"arguments": {
209+
"session": "session0",
210+
"failPoint": {
211+
"configureFailPoint": "failCommand",
212+
"mode": {
213+
"times": 1
214+
},
215+
"data": {
216+
"failCommands": [
217+
"abortTransaction"
218+
],
219+
"errorCode": 91
220+
}
221+
}
222+
}
223+
},
224+
{
225+
"name": "abortTransaction",
226+
"object": "session0"
227+
},
228+
{
229+
"name": "assertSessionUnpinned",
230+
"object": "testRunner",
231+
"arguments": {
232+
"session": "session0"
233+
}
234+
}
235+
]
236+
},
188237
{
189238
"description": "unpin when a new transaction is started",
190239
"operations": [

0 commit comments

Comments
 (0)