diff options
author | Benety Goh <benety@mongodb.com> | 2017-05-20 20:48:07 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-05-23 15:26:56 -0400 |
commit | 8843aaa618789d12ef386f578c9a2d212413ee09 (patch) | |
tree | 050d565a6ab3c95c51df1e8e58a074d6805bc3ee /src/mongo/db/repl/storage_interface_impl_test.cpp | |
parent | df10adbfe55f21e3476be508436345e03b12fddc (diff) | |
download | mongo-8843aaa618789d12ef386f578c9a2d212413ee09.tar.gz |
SERVER-29274 update repl and op observer tests to use new ReplicationCoordinatorMock with default replset settings
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl_test.cpp')
-rw-r--r-- | src/mongo/db/repl/storage_interface_impl_test.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl_test.cpp b/src/mongo/db/repl/storage_interface_impl_test.cpp index 90cfd44f827..e15f54014b2 100644 --- a/src/mongo/db/repl/storage_interface_impl_test.cpp +++ b/src/mongo/db/repl/storage_interface_impl_test.cpp @@ -146,16 +146,6 @@ BSONObj makeOplogEntry(OpTime opTime) { } /** - * Helper to create default ReplSettings for tests. - */ -ReplSettings createReplSettings() { - ReplSettings settings; - settings.setOplogSizeBytes(5 * 1024 * 1024); - settings.setReplSetString("mySet/node1:12345"); - return settings; -} - -/** * Counts the number of keys in an index using an IndexAccessMethod::validate call. */ int64_t getIndexKeyCount(OperationContext* opCtx, IndexCatalog* cat, IndexDescriptor* desc) { @@ -184,10 +174,10 @@ private: void setUp() override { ServiceContextMongoDTest::setUp(); _createOpCtx(); - auto replCoord = stdx::make_unique<ReplicationCoordinatorMock>(getServiceContext(), - createReplSettings()); + auto service = getServiceContext(); + auto replCoord = stdx::make_unique<ReplicationCoordinatorMock>(service); _replicationCoordinatorMock = replCoord.get(); - ReplicationCoordinator::set(getServiceContext(), std::move(replCoord)); + ReplicationCoordinator::set(service, std::move(replCoord)); } void tearDown() override { |