summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/check_quorum_for_config_change_test.cpp
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2014-11-18 14:33:52 -0500
committermatt dannenberg <matt.dannenberg@10gen.com>2014-11-24 09:01:51 -0500
commit4a5d53cc94bc5ddb72ecfc5dd038b0ede12b27aa (patch)
tree6485a222cb9cc40e334763b3f88eeeb71e9360c8 /src/mongo/db/repl/check_quorum_for_config_change_test.cpp
parente4329ae5e7bfb56ef9b63a8388285b70b7ec9634 (diff)
downloadmongo-4a5d53cc94bc5ddb72ecfc5dd038b0ede12b27aa.tar.gz
SERVER-16217 improve replSetReconfig and replSetInitiate error messages
Diffstat (limited to 'src/mongo/db/repl/check_quorum_for_config_change_test.cpp')
-rw-r--r--src/mongo/db/repl/check_quorum_for_config_change_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/check_quorum_for_config_change_test.cpp b/src/mongo/db/repl/check_quorum_for_config_change_test.cpp
index 22b30cfeda4..49d87e9cf4f 100644
--- a/src/mongo/db/repl/check_quorum_for_config_change_test.cpp
+++ b/src/mongo/db/repl/check_quorum_for_config_change_test.cpp
@@ -201,7 +201,7 @@ namespace {
Status status = waitForQuorumCheck();
ASSERT_EQUALS(ErrorCodes::NodeNotFound, status);
ASSERT_REASON_CONTAINS(
- status, "Could not contact the following nodes during replica set initiation");
+ status, "replSetInitiate quorum check failed because not all proposed set members");
ASSERT_REASON_CONTAINS(status, "h1:1");
ASSERT_REASON_CONTAINS(status, "h2:1");
ASSERT_NOT_REASON_CONTAINS(status, "h3:1");
@@ -308,7 +308,7 @@ namespace {
Status status = waitForQuorumCheck();
ASSERT_EQUALS(ErrorCodes::NodeNotFound, status);
ASSERT_REASON_CONTAINS(
- status, "Could not contact the following nodes during replica set initiation");
+ status, "replSetInitiate quorum check failed because not all proposed set members");
ASSERT_NOT_REASON_CONTAINS(status, "h1:1");
ASSERT_REASON_CONTAINS(status, "h2:1");
ASSERT_NOT_REASON_CONTAINS(status, "h3:1");
@@ -696,8 +696,8 @@ namespace {
ASSERT_EQUALS(ErrorCodes::NodeNotFound, status);
ASSERT_REASON_CONTAINS(status, "not enough voting nodes responded; required 2 but only");
ASSERT_REASON_CONTAINS(status, "h1:1");
- ASSERT_NOT_REASON_CONTAINS(status, "h2:1");
- ASSERT_NOT_REASON_CONTAINS(status, "h3:1");
+ ASSERT_REASON_CONTAINS(status, "h2:1 failed with");
+ ASSERT_REASON_CONTAINS(status, "h3:1 failed with");
ASSERT_NOT_REASON_CONTAINS(status, "h4:1");
ASSERT_NOT_REASON_CONTAINS(status, "h5:1");
}