[SERVER-78396] Avoid calling deprecated NamespaceString::db() in unit test code Created: 23/Jun/23  Updated: 29/Oct/23  Resolved: 07/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Didier Nadeau
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-65456 Make NamespaceString::db_deprecated()... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Participants:
Story Points: 1

 Description   

As we are making NamespaceString::db() private, we should change the unit tests to call a different function, such as `db_forTest()`.



 Comments   
Comment by Githook User [ 06/Jul/23 ]

Author:

{'name': 'Didier Nadeau', 'email': 'didier.nadeau@mongodb.com', 'username': 'nadeaudi'}

Message: SERVER-78396 Avoid calling deprecated NamespaceString::db() in unit test code
Branch: master
https://github.com/mongodb/mongo/commit/2d6052cd8f9f1781e14a0920d324eef37fb4d71f

Generated at Thu Feb 08 06:38:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.