File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -199,8 +199,9 @@ buildvariants:
199
199
# Configuring SSL: ssl causes errors in bootstrap mongo-orchestration.
200
200
tasks :
201
201
# The Stable API was introduced in MongoDB version 5.0. Drivers Evergreen Tools only supports
202
- # setting REQUIRE_API_VERSION on standalones.
202
+ # setting REQUIRE_API_VERSION on standalones and sharded clusters .
203
203
- .standalone !.4.0 !.4.2 !.4.4
204
+ - .sharded !.4.0 !.4.2 !.4.4
204
205
205
206
- name : sync-api
206
207
display_name : " Sync API"
Original file line number Diff line number Diff line change @@ -1684,16 +1684,9 @@ async fn convenient_transaction_examples() -> Result<()> {
1684
1684
return Ok ( ( ) ) ;
1685
1685
}
1686
1686
1687
- let uri = DEFAULT_URI . clone ( ) ;
1687
+ let client = Client :: for_test ( ) . await ;
1688
1688
// Start Transactions withTxn API Example 1
1689
1689
1690
- // For a replica set, include the replica set name and a seedlist of the members in the URI
1691
- // string; e.g. let uri = "mongodb://mongodb0.example.com:27017,mongodb1.example.com:27017/?
1692
- // replicaSet=myRepl"; For a sharded cluster, connect to the mongos instances; e.g.
1693
- // let uri = "mongodb://mongos0.example.com:27017,mongos1.example.com:27017/";
1694
-
1695
- let client = Client :: with_uri_str ( uri) . await ?;
1696
-
1697
1690
// Prereq: Create collections. CRUD operations in transactions must be on existing collections.
1698
1691
1699
1692
client
You can’t perform that action at this time.
0 commit comments