summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2016-06-22 18:15:13 -0400
committerJudah Schvimer <judah@mongodb.com>2016-06-22 18:15:13 -0400
commit06cf1ae191a374c2d147bc12dfd236ac26071bac (patch)
tree6fdb329c1315dde1c17fc03c3a20ad3006471c11
parentef34ca10813a2fa779b2693f6566e354b09b063b (diff)
downloadmongo-06cf1ae191a374c2d147bc12dfd236ac26071bac.tar.gz
SERVER-24713 ensures config_server_checks.js fails ReplSetTest restart on authentication failure
-rw-r--r--jstests/replsets/config_server_checks.js2
-rw-r--r--src/mongo/shell/replsettest.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/config_server_checks.js b/jstests/replsets/config_server_checks.js
index f5dfab883cf..1284a366219 100644
--- a/jstests/replsets/config_server_checks.js
+++ b/jstests/replsets/config_server_checks.js
@@ -99,7 +99,7 @@ function expectState(rst, state) {
rst.getPrimary();
expectState(rst, ReplSetTest.State.PRIMARY);
assert.throws(function() {
- rst.restart(0, {configsvr: ""});
+ rst.restart(0, {configsvr: ""}, true);
});
rst.stopSet();
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js
index c618500c557..52c93528ece 100644
--- a/src/mongo/shell/replsettest.js
+++ b/src/mongo/shell/replsettest.js
@@ -978,10 +978,10 @@ var ReplSetTest = function(opts) {
if (started.length) {
// if n was an array of conns, start will return an array of connections
for (var i = 0; i < started.length; i++) {
- jsTest.authenticate(started[i]);
+ assert(jsTest.authenticate(started[i]), "Failed authentication during restart");
}
} else {
- jsTest.authenticate(started);
+ assert(jsTest.authenticate(started), "Failed authentication during restart");
}
}
return started;