Skip to content

Commit 9d2a1ce

Browse files
authored
PYTHON-4362 Resync CMAP tests (#1586)
1 parent bc7181c commit 9d2a1ce

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

test/connection_logging/connection-pool-options.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@
300300
},
301301
{
302302
"description": "waitQueueSize should be included in connection pool created message when specified",
303-
"skipReason": "PyMongo does not support waitQueueSize",
304303
"operations": [
305304
{
306305
"name": "createEntities",
@@ -379,7 +378,6 @@
379378
},
380379
{
381380
"description": "waitQueueMultiple should be included in connection pool created message when specified",
382-
"skipReason": "PyMongo does not support waitQueueMultiple",
383381
"operations": [
384382
{
385383
"name": "createEntities",
@@ -457,4 +455,4 @@
457455
]
458456
}
459457
]
460-
}
458+
}

test/connection_monitoring/pool-checkout-maxConnecting-is-enforced.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
],
2020
"closeConnection": false,
2121
"blockConnection": true,
22-
"blockTimeMS": 750
22+
"blockTimeMS": 800
2323
}
2424
},
2525
"poolOptions": {
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"name": "wait",
56-
"ms": 100
56+
"ms": 400
5757
},
5858
{
5959
"name": "checkOut",

test/unified_format.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,10 @@ def _create_entity(self, entity_spec, uri=None):
495495
kwargs["h"] = client_context.mongos_seeds()
496496
kwargs.update(spec.get("uriOptions", {}))
497497
server_api = spec.get("serverApi")
498+
if "waitQueueSize" in kwargs:
499+
raise unittest.SkipTest("PyMongo does not support waitQueueSize")
500+
if "waitQueueMultiple" in kwargs:
501+
raise unittest.SkipTest("PyMongo does not support waitQueueMultiple")
498502
if server_api:
499503
kwargs["server_api"] = ServerApi(
500504
server_api["version"],

0 commit comments

Comments
 (0)