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/replication_process_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/replication_process_test.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_process_test.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/mongo/db/repl/replication_process_test.cpp b/src/mongo/db/repl/replication_process_test.cpp index 2c7555a0874..4e42ad6e085 100644 --- a/src/mongo/db/repl/replication_process_test.cpp +++ b/src/mongo/db/repl/replication_process_test.cpp @@ -33,7 +33,6 @@ #include "mongo/db/client.h" #include "mongo/db/jsobj.h" #include "mongo/db/repl/optime.h" -#include "mongo/db/repl/repl_settings.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/repl/replication_coordinator_mock.h" #include "mongo/db/repl/replication_process.h" @@ -57,23 +56,11 @@ protected: std::unique_ptr<StorageInterface> _storageInterface; }; -/** - * Helper to create default ReplSettings for tests. - */ -ReplSettings createReplSettings() { - ReplSettings settings; - settings.setOplogSizeBytes(5 * 1024 * 1024); - settings.setReplSetString("mySet/node1:12345"); - return settings; -} - void ReplicationProcessTest::setUp() { ServiceContextMongoDTest::setUp(); _storageInterface = stdx::make_unique<StorageInterfaceImpl>(); - auto serviceContext = getServiceContext(); - ReplicationCoordinator::set( - serviceContext, - stdx::make_unique<ReplicationCoordinatorMock>(serviceContext, createReplSettings())); + auto service = getServiceContext(); + ReplicationCoordinator::set(service, stdx::make_unique<ReplicationCoordinatorMock>(service)); } void ReplicationProcessTest::tearDown() { |