Skip to content

Commit 91f950e

Browse files
committed
undo changes to specs
1 parent d6dd35a commit 91f950e

File tree

4 files changed

+34
-51
lines changed

4 files changed

+34
-51
lines changed

test/connection_logging/connection-logging.json

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,7 @@
331331
"uriOptions": {
332332
"retryReads": false,
333333
"appname": "clientAppName",
334-
"heartbeatFrequencyMS": 10000,
335-
"socketTimeoutMS": 500,
336-
"connectTimeoutMS": 500
334+
"heartbeatFrequencyMS": 10000
337335
},
338336
"observeLogMessages": {
339337
"connection": "debug"
@@ -357,9 +355,7 @@
357355
"failCommands": [
358356
"saslContinue"
359357
],
360-
"closeConnection": false,
361-
"blockConnection": true,
362-
"blockTimeMS": 1000,
358+
"closeConnection": true,
363359
"appName": "clientAppName"
364360
}
365361
}
@@ -450,6 +446,22 @@
450446
}
451447
}
452448
},
449+
{
450+
"level": "debug",
451+
"component": "connection",
452+
"data": {
453+
"message": "Connection pool cleared",
454+
"serverHost": {
455+
"$$type": "string"
456+
},
457+
"serverPort": {
458+
"$$type": [
459+
"int",
460+
"long"
461+
]
462+
}
463+
}
464+
},
453465
{
454466
"level": "debug",
455467
"component": "connection",
@@ -502,22 +514,6 @@
502514
]
503515
}
504516
}
505-
},
506-
{
507-
"level": "debug",
508-
"component": "connection",
509-
"data": {
510-
"message": "Connection pool cleared",
511-
"serverHost": {
512-
"$$type": "string"
513-
},
514-
"serverPort": {
515-
"$$type": [
516-
"int",
517-
"long"
518-
]
519-
}
520-
}
521517
}
522518
]
523519
}

test/connection_monitoring/pool-create-min-size-error.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,21 @@
99
],
1010
"failPoint": {
1111
"configureFailPoint": "failCommand",
12-
"mode": "alwaysOn",
12+
"mode": {
13+
"times": 50
14+
},
1315
"data": {
1416
"failCommands": [
1517
"isMaster",
1618
"hello"
1719
],
18-
"closeConnection": false,
19-
"blockConnection": true,
20-
"blockTimeMS": 1000,
20+
"closeConnection": true,
2121
"appName": "poolCreateMinSizeErrorTest"
2222
}
2323
},
2424
"poolOptions": {
2525
"minPoolSize": 1,
2626
"backgroundThreadIntervalMS": 50,
27-
"socketTimeoutMS": 500,
28-
"connectTimeoutMS": 500,
2927
"appName": "poolCreateMinSizeErrorTest"
3028
},
3129
"operations": [
@@ -51,15 +49,15 @@
5149
"type": "ConnectionCreated",
5250
"address": 42
5351
},
52+
{
53+
"type": "ConnectionPoolCleared",
54+
"address": 42
55+
},
5456
{
5557
"type": "ConnectionClosed",
5658
"address": 42,
5759
"connectionId": 42,
5860
"reason": "error"
59-
},
60-
{
61-
"type": "ConnectionPoolCleared",
62-
"address": 42
6361
}
6462
],
6563
"ignore": [

test/discovery_and_monitoring/unified/auth-network-error.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@
5353
"failCommands": [
5454
"saslContinue"
5555
],
56-
"closeConnection": false,
57-
"blockConnection": true,
58-
"blockTimeMS": 1000,
56+
"closeConnection": true,
5957
"appName": "authNetworkErrorTest"
6058
}
6159
}
@@ -77,8 +75,6 @@
7775
],
7876
"uriOptions": {
7977
"retryWrites": false,
80-
"socketTimeoutMS": 500,
81-
"connectTimeoutMS": 500,
8278
"appname": "authNetworkErrorTest"
8379
}
8480
}

test/load_balancer/sdam-error-handling.json

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
"useMultipleMongoses": false,
3333
"uriOptions": {
3434
"appname": "lbSDAMErrorTestClient",
35-
"socketTimeoutMS": 500,
36-
"connectTimeoutMS": 500,
3735
"retryWrites": false
3836
},
3937
"observeEvents": [
@@ -66,9 +64,7 @@
6664
"id": "multiClient",
6765
"useMultipleMongoses": true,
6866
"uriOptions": {
69-
"retryWrites": false,
70-
"socketTimeoutMS": 500,
71-
"connectTimeoutMS": 500
67+
"retryWrites": false
7268
},
7369
"observeEvents": [
7470
"connectionCreatedEvent",
@@ -286,8 +282,7 @@
286282
"isMaster",
287283
"hello"
288284
],
289-
"blockConnection": true,
290-
"blockTimeMS": 1000,
285+
"closeConnection": true,
291286
"appName": "lbSDAMErrorTestClient"
292287
}
293288
}
@@ -350,8 +345,7 @@
350345
"failCommands": [
351346
"saslContinue"
352347
],
353-
"blockConnection": true,
354-
"blockTimeMS": 1000,
348+
"closeConnection": true,
355349
"appName": "lbSDAMErrorTestClient"
356350
}
357351
}
@@ -378,6 +372,9 @@
378372
{
379373
"connectionCreatedEvent": {}
380374
},
375+
{
376+
"poolClearedEvent": {}
377+
},
381378
{
382379
"connectionClosedEvent": {
383380
"reason": "error"
@@ -387,9 +384,6 @@
387384
"connectionCheckOutFailedEvent": {
388385
"reason": "connectionError"
389386
}
390-
},
391-
{
392-
"poolClearedEvent": {}
393387
}
394388
]
395389
}
@@ -412,8 +406,7 @@
412406
"failCommands": [
413407
"getMore"
414408
],
415-
"closeConnection": true,
416-
"appName": "lbSDAMErrorTestClient"
409+
"closeConnection": true
417410
}
418411
}
419412
}

0 commit comments

Comments
 (0)