summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/reporter_test.cpp
diff options
context:
space:
mode:
authorBen Caimano <ben.caimano@10gen.com>2018-12-12 09:49:13 -0500
committerBen Caimano <ben.caimano@10gen.com>2018-12-13 13:28:07 -0500
commitea10ad36115843fedcf34490b6e92e2bd5ef0d20 (patch)
tree2eae5350a71736c96e73e5447d14a5fa2faa28d9 /src/mongo/db/repl/reporter_test.cpp
parentc1954ac6bdb34c22274d70e8fabbd04555ec7bb2 (diff)
downloadmongo-ea10ad36115843fedcf34490b6e92e2bd5ef0d20.tar.gz
SERVER-38549 Make NetworkInterfaceMock return NetworkInterfaceExceededTimeLimit
Diffstat (limited to 'src/mongo/db/repl/reporter_test.cpp')
-rw-r--r--src/mongo/db/repl/reporter_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/reporter_test.cpp b/src/mongo/db/repl/reporter_test.cpp
index e5b7607390d..7ce5768cf62 100644
--- a/src/mongo/db/repl/reporter_test.cpp
+++ b/src/mongo/db/repl/reporter_test.cpp
@@ -344,7 +344,7 @@ TEST_F(ReporterTestNoTriggerAtSetUp, IsNotActiveAfterUpdatePositionTimeoutExpire
// Reporter should have shut down.
ASSERT_FALSE(testReporter.isWaitingToSendReport());
ASSERT_FALSE(testReporter.isActive());
- ASSERT_EQUALS(testReporter.getStatus_forTest().code(), ErrorCodes::NetworkTimeout);
+ ASSERT_TRUE(ErrorCodes::isExceededTimeLimitError(testReporter.getStatus_forTest().code()));
}
// If an error is returned, it should be recorded in the Reporter and not run again.