Skip to content

Commit fed9604

Browse files
sync latest tests
1 parent e8af442 commit fed9604

9 files changed

Lines changed: 280 additions & 575 deletions

test/spec/client-backpressure/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ Drivers should test that retries do not occur immediately when a SystemOverloade
5050
5. Execute step 3 again.
5151

5252
6. Compare the two time between the two runs.
53-
```python
54-
assertTrue(with_backoff_time - no_backoff_time >= 2.1)
55-
```
56-
The sum of 5 backoffs is 3.1 seconds. There is a 1-second window to account for potential variance between the two
57-
runs.
53+
```python
54+
assertTrue(with_backoff_time - no_backoff_time >= 2.1)
55+
```
56+
The sum of 5 backoffs is 3.1 seconds. There is a 1-second window to account for potential variance between the two
57+
runs.

test/spec/client-backpressure/backpressure-retry-loop.json

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
}
9797
},
9898
{
99-
"object": "client",
10099
"name": "listDatabases",
100+
"object": "client",
101101
"arguments": {
102102
"filter": {}
103103
}
@@ -178,8 +178,8 @@
178178
}
179179
},
180180
{
181-
"object": "client",
182-
"name": "listDatabaseNames"
181+
"name": "listDatabaseNames",
182+
"object": "client"
183183
}
184184
],
185185
"expectEvents": [
@@ -257,8 +257,8 @@
257257
}
258258
},
259259
{
260-
"object": "client",
261260
"name": "createChangeStream",
261+
"object": "client",
262262
"arguments": {
263263
"pipeline": []
264264
}
@@ -344,8 +344,8 @@
344344
}
345345
},
346346
{
347-
"object": "client",
348347
"name": "clientBulkWrite",
348+
"object": "client",
349349
"arguments": {
350350
"models": [
351351
{
@@ -436,8 +436,8 @@
436436
}
437437
},
438438
{
439-
"object": "database",
440439
"name": "aggregate",
440+
"object": "database",
441441
"arguments": {
442442
"pipeline": [
443443
{
@@ -525,8 +525,8 @@
525525
}
526526
},
527527
{
528-
"object": "database",
529528
"name": "listCollections",
529+
"object": "database",
530530
"arguments": {
531531
"filter": {}
532532
}
@@ -607,8 +607,8 @@
607607
}
608608
},
609609
{
610-
"object": "database",
611610
"name": "listCollectionNames",
611+
"object": "database",
612612
"arguments": {
613613
"filter": {}
614614
}
@@ -689,8 +689,8 @@
689689
}
690690
},
691691
{
692-
"object": "database",
693692
"name": "runCommand",
693+
"object": "database",
694694
"arguments": {
695695
"command": {
696696
"ping": 1
@@ -774,8 +774,8 @@
774774
}
775775
},
776776
{
777-
"object": "database",
778777
"name": "createChangeStream",
778+
"object": "database",
779779
"arguments": {
780780
"pipeline": []
781781
}
@@ -856,8 +856,8 @@
856856
}
857857
},
858858
{
859-
"object": "collection",
860859
"name": "aggregate",
860+
"object": "collection",
861861
"arguments": {
862862
"pipeline": []
863863
}
@@ -938,8 +938,8 @@
938938
}
939939
},
940940
{
941-
"object": "collection",
942941
"name": "countDocuments",
942+
"object": "collection",
943943
"arguments": {
944944
"filter": {}
945945
}
@@ -1020,8 +1020,8 @@
10201020
}
10211021
},
10221022
{
1023-
"object": "collection",
1024-
"name": "estimatedDocumentCount"
1023+
"name": "estimatedDocumentCount",
1024+
"object": "collection"
10251025
}
10261026
],
10271027
"expectEvents": [
@@ -1099,8 +1099,8 @@
10991099
}
11001100
},
11011101
{
1102-
"object": "collection",
11031102
"name": "distinct",
1103+
"object": "collection",
11041104
"arguments": {
11051105
"fieldName": "x",
11061106
"filter": {}
@@ -1182,8 +1182,8 @@
11821182
}
11831183
},
11841184
{
1185-
"object": "collection",
11861185
"name": "find",
1186+
"object": "collection",
11871187
"arguments": {
11881188
"filter": {}
11891189
}
@@ -1264,8 +1264,8 @@
12641264
}
12651265
},
12661266
{
1267-
"object": "collection",
12681267
"name": "findOne",
1268+
"object": "collection",
12691269
"arguments": {
12701270
"filter": {}
12711271
}
@@ -1346,8 +1346,8 @@
13461346
}
13471347
},
13481348
{
1349-
"object": "collection",
1350-
"name": "listIndexes"
1349+
"name": "listIndexes",
1350+
"object": "collection"
13511351
}
13521352
],
13531353
"expectEvents": [
@@ -1425,8 +1425,8 @@
14251425
}
14261426
},
14271427
{
1428-
"object": "collection",
1429-
"name": "listIndexNames"
1428+
"name": "listIndexNames",
1429+
"object": "collection"
14301430
}
14311431
],
14321432
"expectEvents": [
@@ -1504,8 +1504,8 @@
15041504
}
15051505
},
15061506
{
1507-
"object": "collection",
15081507
"name": "createChangeStream",
1508+
"object": "collection",
15091509
"arguments": {
15101510
"pipeline": []
15111511
}
@@ -1586,8 +1586,8 @@
15861586
}
15871587
},
15881588
{
1589-
"object": "collection",
15901589
"name": "insertOne",
1590+
"object": "collection",
15911591
"arguments": {
15921592
"document": {
15931593
"_id": 2,
@@ -1671,8 +1671,8 @@
16711671
}
16721672
},
16731673
{
1674-
"object": "collection",
16751674
"name": "insertMany",
1675+
"object": "collection",
16761676
"arguments": {
16771677
"documents": [
16781678
{
@@ -1758,8 +1758,8 @@
17581758
}
17591759
},
17601760
{
1761-
"object": "collection",
17621761
"name": "deleteOne",
1762+
"object": "collection",
17631763
"arguments": {
17641764
"filter": {}
17651765
}
@@ -1840,8 +1840,8 @@
18401840
}
18411841
},
18421842
{
1843-
"object": "collection",
18441843
"name": "deleteMany",
1844+
"object": "collection",
18451845
"arguments": {
18461846
"filter": {}
18471847
}
@@ -1922,8 +1922,8 @@
19221922
}
19231923
},
19241924
{
1925-
"object": "collection",
19261925
"name": "replaceOne",
1926+
"object": "collection",
19271927
"arguments": {
19281928
"filter": {},
19291929
"replacement": {
@@ -2007,8 +2007,8 @@
20072007
}
20082008
},
20092009
{
2010-
"object": "collection",
20112010
"name": "updateOne",
2011+
"object": "collection",
20122012
"arguments": {
20132013
"filter": {},
20142014
"update": {
@@ -2094,8 +2094,8 @@
20942094
}
20952095
},
20962096
{
2097-
"object": "collection",
20982097
"name": "updateMany",
2098+
"object": "collection",
20992099
"arguments": {
21002100
"filter": {},
21012101
"update": {
@@ -2181,8 +2181,8 @@
21812181
}
21822182
},
21832183
{
2184-
"object": "collection",
21852184
"name": "findOneAndDelete",
2185+
"object": "collection",
21862186
"arguments": {
21872187
"filter": {}
21882188
}
@@ -2263,8 +2263,8 @@
22632263
}
22642264
},
22652265
{
2266-
"object": "collection",
22672266
"name": "findOneAndReplace",
2267+
"object": "collection",
22682268
"arguments": {
22692269
"filter": {},
22702270
"replacement": {
@@ -2348,8 +2348,8 @@
23482348
}
23492349
},
23502350
{
2351-
"object": "collection",
23522351
"name": "findOneAndUpdate",
2352+
"object": "collection",
23532353
"arguments": {
23542354
"filter": {},
23552355
"update": {
@@ -2435,8 +2435,8 @@
24352435
}
24362436
},
24372437
{
2438-
"object": "collection",
24392438
"name": "bulkWrite",
2439+
"object": "collection",
24402440
"arguments": {
24412441
"requests": [
24422442
{
@@ -2526,8 +2526,8 @@
25262526
}
25272527
},
25282528
{
2529-
"object": "collection",
25302529
"name": "createIndex",
2530+
"object": "collection",
25312531
"arguments": {
25322532
"keys": {
25332533
"x": 11
@@ -2588,8 +2588,8 @@
25882588
"description": "collection.dropIndex retries using operation loop",
25892589
"operations": [
25902590
{
2591-
"object": "retryable-writes-tests",
25922591
"name": "createIndex",
2592+
"object": "retryable-writes-tests",
25932593
"arguments": {
25942594
"keys": {
25952595
"x": 11
@@ -2621,8 +2621,8 @@
26212621
}
26222622
},
26232623
{
2624-
"object": "collection",
26252624
"name": "dropIndex",
2625+
"object": "collection",
26262626
"arguments": {
26272627
"name": "x_11"
26282628
}
@@ -2703,8 +2703,8 @@
27032703
}
27042704
},
27052705
{
2706-
"object": "collection",
2707-
"name": "dropIndexes"
2706+
"name": "dropIndexes",
2707+
"object": "collection"
27082708
}
27092709
],
27102710
"expectEvents": [

0 commit comments

Comments
 (0)