summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorJason Chan <jason.chan@10gen.com>2020-04-27 18:10:13 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-05 19:09:45 +0000
commit8602f5f7b69d2ae71ed7a50acfc779ac57eba107 (patch)
tree0d4d687d69d190be3957aca3513767e7f89ff6a5 /jstests
parent240c24e4f33fa7186b9f7ee327a68c7d4de0f971 (diff)
downloadmongo-8602f5f7b69d2ae71ed7a50acfc779ac57eba107.tar.gz
SERVER-47390 Improve styling of Replication log lines
(cherry picked from commit c28d271102bcf3484c56ad592065ddae9c73ee5d)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/replsets/disallow_adding_initialized_node1.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/replsets/disallow_adding_initialized_node1.js b/jstests/replsets/disallow_adding_initialized_node1.js
index 4773c4031bd..7034805b480 100644
--- a/jstests/replsets/disallow_adding_initialized_node1.js
+++ b/jstests/replsets/disallow_adding_initialized_node1.js
@@ -49,8 +49,9 @@ configA.members.push({_id: 11, host: primaryB.host});
var reconfigResult =
assert.commandFailedWithCode(primaryA.adminCommand({replSetReconfig: configA}),
ErrorCodes.NewReplicaSetConfigurationIncompatible);
-var msgA = 'Our replica set ID of ' + configA.settings.replicaSetId + ' did not match that of ' +
- primaryB.host + ', which is ' + configB.settings.replicaSetId;
+var msgA = 'Our replica set ID did not match that of our request target, replSetId: ' +
+ configA.settings.replicaSetId + ', requestTarget: ' + primaryB.host +
+ ', requestTargetReplSetId: ' + configB.settings.replicaSetId;
assert.neq(-1, reconfigResult.errmsg.indexOf(msgA));
var newPrimaryA = replSetA.getPrimary();