PYTHON-5675 Fix Backpressure-related racy tests (#2653)

This commit is contained in:
Steven Silvester 2025-12-17 20:21:07 -06:00 committed by GitHub
parent 88f05fae8d
commit e1249d091f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 23 deletions

View File

@ -22,6 +22,27 @@
{
"description": "the server description is not changed on handshake error during minPoolSize population",
"operations": [
{
"name": "failPoint",
"object": "testRunner",
"arguments": {
"client": "setupClient",
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"skip": 1
},
"data": {
"failCommands": [
"hello",
"isMaster"
],
"appName": "authErrorTest",
"closeConnection": true
}
}
}
},
{
"name": "createEntities",
"object": "testRunner",
@ -46,27 +67,6 @@
]
}
},
{
"name": "failPoint",
"object": "testRunner",
"arguments": {
"client": "setupClient",
"failPoint": {
"configureFailPoint": "failCommand",
"mode": {
"skip": 1
},
"data": {
"failCommands": [
"hello",
"isMaster"
],
"appName": "authErrorTest",
"closeConnection": true
}
}
}
},
{
"name": "waitForEvent",
"object": "testRunner",

View File

@ -27,7 +27,7 @@
],
"tests": [
{
"description": "Network error on minPoolSize background creation",
"description": "Server error on minPoolSize background creation",
"operations": [
{
"name": "failPoint",
@ -45,7 +45,7 @@
"isMaster"
],
"appName": "SDAMminPoolSizeError",
"closeConnection": true
"errorCode": 91
}
}
}
@ -68,6 +68,7 @@
"heartbeatFrequencyMS": 10000,
"appname": "SDAMminPoolSizeError",
"minPoolSize": 10,
"serverMonitoringMode": "poll",
"serverSelectionTimeoutMS": 1000
}
}