summaryrefslogtreecommitdiff
path: root/src/mongo/s/sharding_test_fixture_common.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2020-11-25 04:35:02 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-25 21:19:05 +0000
commita194505325087b1e841fdee55c51312a042ce9d2 (patch)
tree601db1cc752d8eb48aee305641b16c2328edf3e5 /src/mongo/s/sharding_test_fixture_common.h
parentd1b4d16214fa2ea17e3b741f582067a0d5ec1f95 (diff)
downloadmongo-a194505325087b1e841fdee55c51312a042ce9d2.tar.gz
SERVER-51809 Change inheritance order for ReshardingRecipientServiceTest
Diffstat (limited to 'src/mongo/s/sharding_test_fixture_common.h')
-rw-r--r--src/mongo/s/sharding_test_fixture_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/sharding_test_fixture_common.h b/src/mongo/s/sharding_test_fixture_common.h
index 52377d7fbc5..b5df4c66ef0 100644
--- a/src/mongo/s/sharding_test_fixture_common.h
+++ b/src/mongo/s/sharding_test_fixture_common.h
@@ -61,7 +61,13 @@ protected:
ShardingTestFixtureCommon();
~ShardingTestFixtureCommon();
+ void setUp() override;
+
+ void tearDown() override;
+
OperationContext* operationContext() const {
+ invariant(_opCtxHolder,
+ "ShardingTestFixtureCommon::setUp() must have been called before this method");
return _opCtxHolder.get();
}