Skip to content

Commit 8b900ee

Browse files
test(NODE-7402): sync spec tests for CSOT (#4852)
Co-authored-by: Bailey Pearson <bailey.pearson@mongodb.com>
1 parent d46b8d0 commit 8b900ee

File tree

6 files changed

+21
-18
lines changed

6 files changed

+21
-18
lines changed

test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,12 @@
244244
"failPoint": {
245245
"configureFailPoint": "failCommand",
246246
"mode": {
247-
"times": 1
247+
"times": 2
248248
},
249249
"data": {
250250
"failCommands": [
251-
"insert"
251+
"insert",
252+
"abortTransaction"
252253
],
253254
"blockConnection": true,
254255
"blockTimeMS": 600
@@ -330,4 +331,4 @@
330331
]
331332
}
332333
]
333-
}
334+
}

test/spec/client-side-operations-timeout/sessions-inherit-timeoutMS.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ tests:
134134
client: *failPointClient
135135
failPoint:
136136
configureFailPoint: failCommand
137-
mode: { times: 1 }
137+
mode: { times: 2 }
138138
data:
139-
failCommands: ["insert"]
139+
failCommands: ["insert", "abortTransaction"]
140140
blockConnection: true
141141
blockTimeMS: 600
142142
- name: withTransaction
@@ -172,4 +172,4 @@ tests:
172172
abortTransaction: 1
173173
maxTimeMS: { $$type: [ "int", "long" ] }
174174
- commandFailedEvent:
175-
commandName: abortTransaction
175+
commandName: abortTransaction

test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,12 @@
245245
"failPoint": {
246246
"configureFailPoint": "failCommand",
247247
"mode": {
248-
"times": 1
248+
"times": 2
249249
},
250250
"data": {
251251
"failCommands": [
252-
"insert"
252+
"insert",
253+
"abortTransaction"
253254
],
254255
"blockConnection": true,
255256
"blockTimeMS": 600
@@ -332,4 +333,4 @@
332333
]
333334
}
334335
]
335-
}
336+
}

test/spec/client-side-operations-timeout/sessions-override-operation-timeoutMS.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ tests:
134134
client: *failPointClient
135135
failPoint:
136136
configureFailPoint: failCommand
137-
mode: { times: 1 }
137+
mode: { times: 2 }
138138
data:
139-
failCommands: ["insert"]
139+
failCommands: ["insert", "abortTransaction"]
140140
blockConnection: true
141141
blockTimeMS: 600
142142
- name: withTransaction
@@ -173,4 +173,4 @@ tests:
173173
abortTransaction: 1
174174
maxTimeMS: { $$type: ["int", "long"] }
175175
- commandFailedEvent:
176-
commandName: abortTransaction
176+
commandName: abortTransaction

test/spec/client-side-operations-timeout/sessions-override-timeoutMS.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,12 @@
242242
"failPoint": {
243243
"configureFailPoint": "failCommand",
244244
"mode": {
245-
"times": 1
245+
"times": 2
246246
},
247247
"data": {
248248
"failCommands": [
249-
"insert"
249+
"insert",
250+
"abortTransaction"
250251
],
251252
"blockConnection": true,
252253
"blockTimeMS": 600
@@ -328,4 +329,4 @@
328329
]
329330
}
330331
]
331-
}
332+
}

test/spec/client-side-operations-timeout/sessions-override-timeoutMS.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ tests:
132132
client: *failPointClient
133133
failPoint:
134134
configureFailPoint: failCommand
135-
mode: { times: 1 }
135+
mode: { times: 2 }
136136
data:
137-
failCommands: ["insert"]
137+
failCommands: ["insert", "abortTransaction"]
138138
blockConnection: true
139139
blockTimeMS: 600
140140
- name: withTransaction
@@ -170,4 +170,4 @@ tests:
170170
abortTransaction: 1
171171
maxTimeMS: { $$type: [ "int", "long" ] }
172172
- commandFailedEvent:
173-
commandName: abortTransaction
173+
commandName: abortTransaction

0 commit comments

Comments
 (0)