From e18c5c008010e232d802ade097325934885b4420 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Tue, 28 Nov 2023 12:01:39 -0600 Subject: [PATCH 1/2] Update comment to more accurately reflect sharded cluster behavior --- src/mongocxx/test/database.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mongocxx/test/database.cpp b/src/mongocxx/test/database.cpp index cbbafd5673..707fae5e2c 100644 --- a/src/mongocxx/test/database.cpp +++ b/src/mongocxx/test/database.cpp @@ -344,8 +344,7 @@ TEST_CASE("Database integration tests", "[database]") { return; } - // SERVER-79306: $listLocalSessions does not behave as expect if the database does not - // already exist on sharded clusters. + // SERVER-79306: Ensure the database exists for consistent behavior with sharded clusters. database.create_collection("dummy"); auto session1 = mongo_client.start_session(); From e6c474fbba1ef5c6b4d3e9da2c1cc202a6785cf0 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Tue, 28 Nov 2023 12:58:25 -0600 Subject: [PATCH 2/2] Fix formatting --- src/mongocxx/test/database.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mongocxx/test/database.cpp b/src/mongocxx/test/database.cpp index 707fae5e2c..076a97043a 100644 --- a/src/mongocxx/test/database.cpp +++ b/src/mongocxx/test/database.cpp @@ -344,7 +344,8 @@ TEST_CASE("Database integration tests", "[database]") { return; } - // SERVER-79306: Ensure the database exists for consistent behavior with sharded clusters. + // SERVER-79306: Ensure the database exists for consistent behavior with sharded + // clusters. database.create_collection("dummy"); auto session1 = mongo_client.start_session();