diff options
Diffstat (limited to 'src/mongo/db/s/vector_clock_shard_server_test.cpp')
-rw-r--r-- | src/mongo/db/s/vector_clock_shard_server_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/vector_clock_shard_server_test.cpp b/src/mongo/db/s/vector_clock_shard_server_test.cpp index 0674419fc34..de575294c3c 100644 --- a/src/mongo/db/s/vector_clock_shard_server_test.cpp +++ b/src/mongo/db/s/vector_clock_shard_server_test.cpp @@ -44,12 +44,12 @@ namespace { class VectorClockShardServerTest : public ShardServerTestFixture { protected: + VectorClockShardServerTest() + : ShardServerTestFixture(Options{}.useMockClock(true), false /* setUpMajorityReads */) {} + void setUp() override { ShardServerTestFixture::setUp(); - auto clockSource = std::make_unique<ClockSourceMock>(); - getServiceContext()->setFastClockSource(std::move(clockSource)); - auto keysCollectionClient = std::make_unique<KeysCollectionClientDirect>(); VectorClockMutable::get(getServiceContext()) |