summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/applier_test.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2015-06-17 14:30:36 -0400
committerBenety Goh <benety@mongodb.com>2015-06-19 11:09:12 -0400
commitb57212c919351ef069738fc727406726671711c4 (patch)
tree7280a19013f496735a1c1401a135b353a1df6fe5 /src/mongo/db/repl/applier_test.cpp
parentc89ae07226ca94e320e2c0117d0a449a6176d8a0 (diff)
downloadmongo-b57212c919351ef069738fc727406726671711c4.tar.gz
SERVER-18036 moved getDetectableErrorStatus() to replication executor test fixture
make all setUp/tearDown test fixture functions for data replicator protected
Diffstat (limited to 'src/mongo/db/repl/applier_test.cpp')
-rw-r--r--src/mongo/db/repl/applier_test.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/mongo/db/repl/applier_test.cpp b/src/mongo/db/repl/applier_test.cpp
index 0774b1bed29..f876a884605 100644
--- a/src/mongo/db/repl/applier_test.cpp
+++ b/src/mongo/db/repl/applier_test.cpp
@@ -49,17 +49,14 @@ namespace {
class ApplierTest : public ReplicationExecutorTest {
public:
- /**
- * Creates an initial error status suitable for checking if
- * applier has modified the 'status' field in test fixture.
- */
- static Status getDetectableErrorStatus();
- void setUp() override;
- void tearDown() override;
Applier* getApplier() const;
protected:
+
+ void setUp() override;
+ void tearDown() override;
+
/**
* Test function to check behavior when we fail to apply one of the operations.
*/
@@ -69,10 +66,6 @@ namespace {
std::unique_ptr<unittest::Barrier> _barrier;
};
- Status ApplierTest::getDetectableErrorStatus() {
- return Status(ErrorCodes::InternalError, "Not mutated");
- }
-
void ApplierTest::setUp() {
ReplicationExecutorTest::setUp();
launchExecutorThread();