Skip to content

Commit 324bb15

Browse files
committed
Fix PYTHON-2673.patch
1 parent f505728 commit 324bb15

File tree

3 files changed

+71
-7
lines changed

3 files changed

+71
-7
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
diff --git a/test/load_balancer/cursors.json b/test/load_balancer/cursors.json
2+
index 43e4fbb4f..4e2a55fd4 100644
3+
--- a/test/load_balancer/cursors.json
4+
+++ b/test/load_balancer/cursors.json
5+
@@ -376,7 +376,7 @@
6+
]
7+
},
8+
{
9+
+ "description": "pinned connections are not returned after an network error during getMore",
10+
- "description": "pinned connections are returned after an network error during getMore",
11+
"operations": [
12+
{
13+
"name": "failPoint",
14+
@@ -440,7 +440,7 @@
15+
"object": "testRunner",
16+
"arguments": {
17+
"client": "client0",
18+
+ "connections": 1
19+
- "connections": 0
20+
}
21+
},
22+
{
23+
@@ -659,7 +659,7 @@
24+
]
25+
},
26+
{
27+
+ "description": "pinned connections are not returned to the pool after a non-network error on getMore",
28+
- "description": "pinned connections are returned to the pool after a non-network error on getMore",
29+
"operations": [
30+
{
31+
"name": "failPoint",
32+
@@ -715,7 +715,7 @@
33+
"object": "testRunner",
34+
"arguments": {
35+
"client": "client0",
36+
+ "connections": 1
37+
- "connections": 0
38+
}
39+
},
40+
{
41+
diff --git a/test/load_balancer/sdam-error-handling.json b/test/load_balancer/sdam-error-handling.json
42+
index 63aabc04d..462fa0aac 100644
43+
--- a/test/load_balancer/sdam-error-handling.json
44+
+++ b/test/load_balancer/sdam-error-handling.json
45+
@@ -366,6 +366,9 @@
46+
{
47+
"connectionCreatedEvent": {}
48+
},
49+
+ {
50+
+ "poolClearedEvent": {}
51+
+ },
52+
{
53+
"connectionClosedEvent": {
54+
"reason": "error"
55+
@@ -378,9 +375,6 @@
56+
"connectionCheckOutFailedEvent": {
57+
"reason": "connectionError"
58+
}
59+
- },
60+
- {
61+
- "poolClearedEvent": {}
62+
}
63+
]
64+
}

test/load_balancer/cursors.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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",
@@ -449,7 +449,7 @@
449449
"object": "testRunner",
450450
"arguments": {
451451
"client": "client0",
452-
"connections": 1
452+
"connections": 0
453453
}
454454
},
455455
{
@@ -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",
@@ -733,7 +733,7 @@
733733
"object": "testRunner",
734734
"arguments": {
735735
"client": "client0",
736-
"connections": 1
736+
"connections": 0
737737
}
738738
},
739739
{

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)