diff --git a/src/mongocxx/test/database.cpp b/src/mongocxx/test/database.cpp index cbbafd5673..076a97043a 100644 --- a/src/mongocxx/test/database.cpp +++ b/src/mongocxx/test/database.cpp @@ -344,8 +344,8 @@ 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();