Skip to content

Commit 5885e3c

Browse files
committed
clean up unified tests
1 parent 9197f3a commit 5885e3c

File tree

2 files changed

+18
-82
lines changed

2 files changed

+18
-82
lines changed

test/transactions/unified/backpressure-retryable-abort.json

Lines changed: 18 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -40,38 +40,6 @@
4040
"id": "session0",
4141
"client": "client0"
4242
}
43-
},
44-
{
45-
"client": {
46-
"id": "client1",
47-
"useMultipleMongoses": false,
48-
"uriOptions": {
49-
"retryWrites": false
50-
},
51-
"observeEvents": [
52-
"commandStartedEvent"
53-
]
54-
}
55-
},
56-
{
57-
"database": {
58-
"id": "database1",
59-
"client": "client1",
60-
"databaseName": "transaction-tests"
61-
}
62-
},
63-
{
64-
"collection": {
65-
"id": "collection1",
66-
"database": "database1",
67-
"collectionName": "test"
68-
}
69-
},
70-
{
71-
"session": {
72-
"id": "session1",
73-
"client": "client1"
74-
}
7543
}
7644
],
7745
"initialData": [
@@ -89,7 +57,7 @@
8957
"object": "testRunner",
9058
"name": "failPoint",
9159
"arguments": {
92-
"client": "client1",
60+
"client": "client0",
9361
"failPoint": {
9462
"configureFailPoint": "failCommand",
9563
"mode": {
@@ -109,14 +77,14 @@
10977
}
11078
},
11179
{
112-
"object": "session1",
80+
"object": "session0",
11381
"name": "startTransaction"
11482
},
11583
{
116-
"object": "collection1",
84+
"object": "collection0",
11785
"name": "insertOne",
11886
"arguments": {
119-
"session": "session1",
87+
"session": "session0",
12088
"document": {
12189
"_id": 1
12290
}
@@ -130,13 +98,13 @@
13098
}
13199
},
132100
{
133-
"object": "session1",
101+
"object": "session0",
134102
"name": "abortTransaction"
135103
}
136104
],
137105
"expectEvents": [
138106
{
139-
"client": "client1",
107+
"client": "client0",
140108
"events": [
141109
{
142110
"commandStartedEvent": {
@@ -152,7 +120,7 @@
152120
"$$exists": false
153121
},
154122
"lsid": {
155-
"$$sessionLsid": "session1"
123+
"$$sessionLsid": "session0"
156124
},
157125
"txnNumber": {
158126
"$numberLong": "1"
@@ -172,7 +140,7 @@
172140
"command": {
173141
"abortTransaction": 1,
174142
"lsid": {
175-
"$$sessionLsid": "session1"
143+
"$$sessionLsid": "session0"
176144
},
177145
"txnNumber": {
178146
"$numberLong": "1"
@@ -194,7 +162,7 @@
194162
"command": {
195163
"abortTransaction": 1,
196164
"lsid": {
197-
"$$sessionLsid": "session1"
165+
"$$sessionLsid": "session0"
198166
},
199167
"txnNumber": {
200168
"$numberLong": "1"
@@ -216,7 +184,7 @@
216184
"command": {
217185
"abortTransaction": 1,
218186
"lsid": {
219-
"$$sessionLsid": "session1"
187+
"$$sessionLsid": "session0"
220188
},
221189
"txnNumber": {
222190
"$numberLong": "1"
@@ -251,7 +219,7 @@
251219
"object": "testRunner",
252220
"name": "failPoint",
253221
"arguments": {
254-
"client": "client1",
222+
"client": "client0",
255223
"failPoint": {
256224
"configureFailPoint": "failCommand",
257225
"mode": "alwaysOn",
@@ -269,14 +237,14 @@
269237
}
270238
},
271239
{
272-
"object": "session1",
240+
"object": "session0",
273241
"name": "startTransaction"
274242
},
275243
{
276-
"object": "collection1",
244+
"object": "collection0",
277245
"name": "insertOne",
278246
"arguments": {
279-
"session": "session1",
247+
"session": "session0",
280248
"document": {
281249
"_id": 1
282250
}
@@ -290,13 +258,13 @@
290258
}
291259
},
292260
{
293-
"object": "session1",
261+
"object": "session0",
294262
"name": "abortTransaction"
295263
}
296264
],
297265
"expectEvents": [
298266
{
299-
"client": "client1",
267+
"client": "client0",
300268
"events": [
301269
{
302270
"commandStartedEvent": {
@@ -312,7 +280,7 @@
312280
"$$exists": false
313281
},
314282
"lsid": {
315-
"$$sessionLsid": "session1"
283+
"$$sessionLsid": "session0"
316284
},
317285
"txnNumber": {
318286
"$numberLong": "1"
@@ -332,7 +300,7 @@
332300
"command": {
333301
"abortTransaction": 1,
334302
"lsid": {
335-
"$$sessionLsid": "session1"
303+
"$$sessionLsid": "session0"
336304
},
337305
"txnNumber": {
338306
"$numberLong": "1"

test/transactions/unified/backpressure-retryable-commit.json

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,38 +40,6 @@
4040
"id": "session0",
4141
"client": "client0"
4242
}
43-
},
44-
{
45-
"client": {
46-
"id": "client1",
47-
"useMultipleMongoses": false,
48-
"uriOptions": {
49-
"retryWrites": false
50-
},
51-
"observeEvents": [
52-
"commandStartedEvent"
53-
]
54-
}
55-
},
56-
{
57-
"database": {
58-
"id": "database1",
59-
"client": "client1",
60-
"databaseName": "transaction-tests"
61-
}
62-
},
63-
{
64-
"collection": {
65-
"id": "collection1",
66-
"database": "database1",
67-
"collectionName": "test"
68-
}
69-
},
70-
{
71-
"session": {
72-
"id": "session1",
73-
"client": "client1"
74-
}
7543
}
7644
],
7745
"initialData": [

0 commit comments

Comments
 (0)