summaryrefslogtreecommitdiff
path: root/src/mongo/client/fetcher_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/client/fetcher_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/client/fetcher_test.cpp')
-rw-r--r--src/mongo/client/fetcher_test.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mongo/client/fetcher_test.cpp b/src/mongo/client/fetcher_test.cpp
index 6414dbae1f9..204e89892d2 100644
--- a/src/mongo/client/fetcher_test.cpp
+++ b/src/mongo/client/fetcher_test.cpp
@@ -49,10 +49,7 @@ namespace {
class FetcherTest : public ReplicationExecutorTest {
public:
- static Status getDetectableErrorStatus();
FetcherTest();
- void setUp() override;
- void tearDown() override;
void clear();
void scheduleNetworkResponse(const BSONObj& obj);
void scheduleNetworkResponse(ErrorCodes::Error code, const std::string& reason);
@@ -61,6 +58,10 @@ namespace {
void finishProcessingNetworkResponse();
protected:
+
+ void setUp() override;
+ void tearDown() override;
+
Status status;
CursorId cursorId;
Fetcher::Documents documents;
@@ -76,10 +77,6 @@ namespace {
BSONObjBuilder* getMoreBob);
};
- Status FetcherTest::getDetectableErrorStatus() {
- return Status(ErrorCodes::InternalError, "Not mutated");
- }
-
FetcherTest::FetcherTest()
: status(getDetectableErrorStatus()),
cursorId(-1),