summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2016-12-13 12:59:39 -0500
committerEric Milkie <milkie@10gen.com>2017-01-04 08:32:46 -0500
commit8d661adb31c8be42ecf30da99af0ebb294354008 (patch)
treec9116a4adcb44218a84366e48cac4efc248d343d /jstests
parent99bac324eef6e04abf06f7f7f5ccfdad8468eb0b (diff)
downloadmongo-8d661adb31c8be42ecf30da99af0ebb294354008.tar.gz
SERVER-23759 do not auth when testing shutdown at startup
(cherry picked from commit 0240b9c2e39ae05c607b34b66573bb972ef1f66f)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/replsets/shutdown.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/shutdown.js b/jstests/replsets/shutdown.js
index 8a56b9124c3..e16e9af06b3 100644
--- a/jstests/replsets/shutdown.js
+++ b/jstests/replsets/shutdown.js
@@ -20,7 +20,8 @@ load('jstests/replsets/rslib.js');
rst.awaitReplication();
let id = rst.getNodeId(rst.getSecondary());
- let program = rst.restart(
+ rst.stop(id);
+ let program = rst.start(
id, {waitForConnect: false, setParameter: "failpoint.shutdownAtStartup={mode:'alwaysOn'}"});
// mongod should exit automatically, since failpoint was set.
let exitCode = waitProgram(program.pid);