Skip to content

Commit c78dfc4

Browse files
committed
Add PYTHON-2673.patch
1 parent f505728 commit c78dfc4

File tree

3 files changed

+80
-9
lines changed

3 files changed

+80
-9
lines changed
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
diff --git a/test/load_balancer/cursors.json b/test/load_balancer/cursors.json
2+
index 4b492f7d8..e44fad1bc 100644
3+
--- a/test/load_balancer/cursors.json
4+
+++ b/test/load_balancer/cursors.json
5+
@@ -386,4 +386,4 @@
6+
},
7+
{
8+
+ "description": "pinned connections are not returned after an network error during getMore",
9+
- "description": "pinned connections are returned after an network error during getMore",
10+
"operations": [
11+
@@ -419,9 +419,9 @@
12+
},
13+
{
14+
"name": "assertNumberConnectionsCheckedOut",
15+
"object": "testRunner",
16+
"arguments": {
17+
"client": "client0",
18+
+ "connections": 0
19+
- "connections": 1
20+
}
21+
}
22+
@@ -678,4 +678,4 @@
23+
},
24+
{
25+
+ "description": "pinned connections are not returned to the pool after a non-network error on getMore",
26+
- "description": "pinned connections are returned to the pool after a non-network error on getMore",
27+
"operations": [
28+
@@ -732,9 +732,9 @@
29+
},
30+
{
31+
"name": "assertNumberConnectionsCheckedOut",
32+
"object": "testRunner",
33+
"arguments": {
34+
"client": "client0",
35+
+ "connections": 0
36+
- "connections": 1
37+
}
38+
}
39+
diff --git a/test/load_balancer/sdam-error-handling.json b/test/load_balancer/sdam-error-handling.json
40+
index 4b492f7d8..e44fad1bc 100644
41+
--- a/test/load_balancer/sdam-error-handling.json
42+
+++ b/test/load_balancer/sdam-error-handling.json
43+
@@ -367,23 +367,23 @@
44+
"expectEvents": [
45+
{
46+
"client": "singleClient",
47+
"eventType": "cmap",
48+
"events": [
49+
{
50+
"connectionCreatedEvent": {}
51+
},
52+
+ {
53+
+ "poolClearedEvent": {}
54+
+ },
55+
{
56+
"connectionClosedEvent": {
57+
"reason": "error"
58+
}
59+
},
60+
{
61+
"connectionCheckOutFailedEvent": {
62+
"reason": "connectionError"
63+
}
64+
+ }
65+
- },
66+
- {
67+
- "poolClearedEvent": {}
68+
- }
69+
]
70+
}
71+
]

test/load_balancer/cursors.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
"object": "testRunner",
317317
"arguments": {
318318
"client": "client0",
319-
"connections": 0
319+
"connections": 1
320320
}
321321
}
322322
],
@@ -385,7 +385,7 @@
385385
]
386386
},
387387
{
388-
"description": "pinned connections are not returned after an network error during getMore",
388+
"description": "pinned connections are returned after an network error during getMore",
389389
"operations": [
390390
{
391391
"name": "failPoint",
@@ -461,7 +461,7 @@
461461
"object": "testRunner",
462462
"arguments": {
463463
"client": "client0",
464-
"connections": 0
464+
"connections": 1
465465
}
466466
}
467467
],
@@ -677,7 +677,7 @@
677677
]
678678
},
679679
{
680-
"description": "pinned connections are not returned to the pool after a non-network error on getMore",
680+
"description": "pinned connections are returned to the pool after a non-network error on getMore",
681681
"operations": [
682682
{
683683
"name": "failPoint",
@@ -745,7 +745,7 @@
745745
"object": "testRunner",
746746
"arguments": {
747747
"client": "client0",
748-
"connections": 0
748+
"connections": 1
749749
}
750750
}
751751
],
@@ -854,7 +854,7 @@
854854
"object": "testRunner",
855855
"arguments": {
856856
"client": "client0",
857-
"connections": 0
857+
"connections": 1
858858
}
859859
}
860860
],

test/load_balancer/sdam-error-handling.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,6 @@
372372
{
373373
"connectionCreatedEvent": {}
374374
},
375-
{
376-
"poolClearedEvent": {}
377-
},
378375
{
379376
"connectionClosedEvent": {
380377
"reason": "error"
@@ -384,6 +381,9 @@
384381
"connectionCheckOutFailedEvent": {
385382
"reason": "connectionError"
386383
}
384+
},
385+
{
386+
"poolClearedEvent": {}
387387
}
388388
]
389389
}

0 commit comments

Comments
 (0)