Skip to content

Commit 84f3b68

Browse files
committed
more test cleanup
1 parent 2c3c9ad commit 84f3b68

File tree

3 files changed

+61
-7
lines changed

3 files changed

+61
-7
lines changed

test/discovery_and_monitoring/unified/backoff-heartbeat-failure.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
],
5757
"uriOptions": {
5858
"retryWrites": false,
59-
"heartbeatFrequencyMS": 5000,
59+
"heartbeatFrequencyMS": 10000,
6060
"appname": "heartbeatBackoffFailTest"
6161
}
6262
}

test/discovery_and_monitoring/unified/backoff-network-error-fail.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@
3838
{
3939
"description": "Backoff and fail after network connection errors during connection establishment",
4040
"operations": [
41+
{
42+
"name": "failPoint",
43+
"object": "testRunner",
44+
"arguments": {
45+
"client": "setupClient",
46+
"failPoint": {
47+
"configureFailPoint": "failCommand",
48+
"mode": "off"
49+
}
50+
}
51+
},
4152
{
4253
"name": "createEntities",
4354
"object": "testRunner",
@@ -141,7 +152,17 @@
141152
{
142153
"description": "Backoff and clear the pool after network failures followed by server error",
143154
"operations": [
144-
155+
{
156+
"name": "failPoint",
157+
"object": "testRunner",
158+
"arguments": {
159+
"client": "setupClient",
160+
"failPoint": {
161+
"configureFailPoint": "failCommand",
162+
"mode": "off"
163+
}
164+
}
165+
},
145166
{
146167
"name": "createEntities",
147168
"object": "testRunner",

test/load_balancer/sdam-error-handling.json

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
"connectionCheckOutFailedEvent",
4242
"connectionCheckedInEvent",
4343
"connectionClosedEvent",
44-
"poolClearedEvent"
44+
"poolClearedEvent",
45+
"poolBackoffEvent",
46+
"serverHeartbeatSucceededEvent",
47+
"serverHeartbeatFailedEvent"
4548
]
4649
}
4750
},
@@ -260,13 +263,24 @@
260263
]
261264
},
262265
{
263-
"description": "errors during the initial connection hello are ignored",
266+
"description": "errors during the initial connection hello trigger backoff",
264267
"runOnRequirements": [
265268
{
266269
"minServerVersion": "4.4.7"
267270
}
268271
],
269272
"operations": [
273+
{
274+
"name": "waitForEvent",
275+
"object": "testRunner",
276+
"arguments": {
277+
"client": "singleClient",
278+
"event": {
279+
"serverHeartbeatSucceededEvent": {}
280+
},
281+
"count": 1
282+
}
283+
},
270284
{
271285
"name": "failPoint",
272286
"object": "testRunner",
@@ -295,9 +309,17 @@
295309
"document": {
296310
"x": 1
297311
}
298-
},
299-
"expectError": {
300-
"isClientError": true
312+
}
313+
},
314+
{
315+
"name": "waitForEvent",
316+
"object": "testRunner",
317+
"arguments": {
318+
"client": "client",
319+
"event": {
320+
"poolBackoffEvent": {}
321+
},
322+
"count": 1
301323
}
302324
}
303325
],
@@ -318,6 +340,17 @@
318340
"connectionCheckOutFailedEvent": {
319341
"reason": "connectionError"
320342
}
343+
},
344+
{
345+
"poolBackoffEvent": {
346+
"attempt": 1
347+
}
348+
},
349+
{
350+
"connectionCheckedOutEvent": {}
351+
},
352+
{
353+
"connectionCheckedInEvent": {}
321354
}
322355
]
323356
}

0 commit comments

Comments
 (0)