PYTHON-4020 Drivers should unpin connections when ending a session (#2239)

This commit is contained in:
Steven Silvester 2025-03-28 15:31:56 -05:00 committed by GitHub
parent c326161379
commit 58a41ae7f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1616,6 +1616,50 @@
]
}
]
},
{
"description": "pinned connection is released when session ended",
"operations": [
{
"name": "startTransaction",
"object": "session0"
},
{
"name": "insertOne",
"object": "collection0",
"arguments": {
"document": {
"x": 1
},
"session": "session0"
}
},
{
"name": "commitTransaction",
"object": "session0"
},
{
"name": "endSession",
"object": "session0"
}
],
"expectEvents": [
{
"client": "client0",
"eventType": "cmap",
"events": [
{
"connectionReadyEvent": {}
},
{
"connectionCheckedOutEvent": {}
},
{
"connectionCheckedInEvent": {}
}
]
}
]
}
]
}