summaryrefslogtreecommitdiff
path: root/src/mongo/s/sharding_router_test_fixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/sharding_router_test_fixture.h')
-rw-r--r--src/mongo/s/sharding_router_test_fixture.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mongo/s/sharding_router_test_fixture.h b/src/mongo/s/sharding_router_test_fixture.h
index 05c1fa37a88..3eadf92a225 100644
--- a/src/mongo/s/sharding_router_test_fixture.h
+++ b/src/mongo/s/sharding_router_test_fixture.h
@@ -28,6 +28,7 @@
#pragma once
+#include "mongo/db/service_context_test_fixture.h"
#include "mongo/s/sharding_test_fixture_common.h"
namespace mongo {
@@ -50,7 +51,7 @@ class TransportLayerMock;
* Sets up the mocked out objects for testing the replica-set backed catalog manager and catalog
* client.
*/
-class ShardingTestFixture : public unittest::Test, public ShardingTestFixtureCommon {
+class ShardingTestFixture : public ServiceContextTest, public ShardingTestFixtureCommon {
public:
ShardingTestFixture();
~ShardingTestFixture();
@@ -64,7 +65,6 @@ public:
DistLockManagerMock* distLock() const;
RemoteCommandTargeterMock* configTargeter() const;
- ServiceContext* serviceContext() const;
OperationContext* operationContext() const;
/**
@@ -170,10 +170,6 @@ public:
const NamespaceString& expectedNs,
const ChunkVersion& expectedChunkVersion);
- void setUp() override;
-
- void tearDown() override;
-
void shutdownExecutor();
void setRemote(const HostAndPort& remote);