diff --git a/driver-core/src/test/resources/unified-test-format/load-balancers/non-lb-connection-establishment.json b/driver-core/src/test/resources/unified-test-format/load-balancers/non-lb-connection-establishment.json index f4fed13cc2..6aaa7bdf98 100644 --- a/driver-core/src/test/resources/unified-test-format/load-balancers/non-lb-connection-establishment.json +++ b/driver-core/src/test/resources/unified-test-format/load-balancers/non-lb-connection-establishment.json @@ -57,19 +57,6 @@ "tests": [ { "description": "operations against non-load balanced clusters fail if URI contains loadBalanced=true", - "runOnRequirements": [ - { - "maxServerVersion": "8.0.99", - "topologies": [ - "single" - ] - }, - { - "topologies": [ - "sharded" - ] - } - ], "operations": [ { "name": "runCommand", diff --git a/driver-core/src/test/resources/unified-test-format/load-balancers/transactions.json b/driver-core/src/test/resources/unified-test-format/load-balancers/transactions.json index 0dd04ee854..ca9c145217 100644 --- a/driver-core/src/test/resources/unified-test-format/load-balancers/transactions.json +++ b/driver-core/src/test/resources/unified-test-format/load-balancers/transactions.json @@ -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": {} + } + ] + } + ] } ] }