[SERVER-49864] Tests with ServiceContext use should be ServiceContextTests Created: 24/Jul/20  Updated: 29/Oct/23  Resolved: 28/Jun/22

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

Type: Improvement Priority: Minor - P4
Reporter: Benjamin Caimano (Inactive) Assignee: Alex Li
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-48650 Unit tests' ServiceContext's NetworkI... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2022-06-13, Service Arch 2022-06-27, Service Arch 2022-07-11
Participants:

 Description   

We have a small handful of tests that make use of ServiceContext pointers but are not derived from ServiceContextTest:

Show all

src/mongo/client/server_is_master_monitor_test.cpp
src/mongo/client/server_ping_monitor_test.cpp
src/mongo/db/operation_context_test.cpp
src/mongo/util/future_util_test.cpp

We should convert them to be ServiceContextTest and become DRYer.



 Comments   
Comment by Githook User [ 28/Jun/22 ]

Author:

{'name': 'Alex Li', 'email': 'alex.li@mongodb.com', 'username': 'lia394126'}

Message: SERVER-49864 Changed tests to use ServiceContextTest so getServiceContext can be used
Branch: master
https://github.com/mongodb/mongo/commit/9bd72a8bcf554dfb322aa51c059d81598b79c8f7

Comment by Lauren Lewis (Inactive) [ 21/Dec/21 ]

We haven’t heard back from you in at least 1 year, so I'm going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Generated at Thu Feb 08 05:21:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.