diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2019-02-07 15:52:06 -0500 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2019-02-12 11:07:46 -0500 |
commit | 77dccdfdc54eab46031f465a2e46570cc5c3c52f (patch) | |
tree | 9c7b1449f6dedd7076256d314aee52637445f43c /jstests/replsets/replset3.js | |
parent | c3a72d61dc8ab4aa32fae400c74b06360a572537 (diff) | |
download | mongo-77dccdfdc54eab46031f465a2e46570cc5c3c52f.tar.gz |
SERVER-38516 Tighten up tests that don't fail when not closing connections during stepdown bbut allow exceptions during stepdown
Diffstat (limited to 'jstests/replsets/replset3.js')
-rw-r--r-- | jstests/replsets/replset3.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/jstests/replsets/replset3.js b/jstests/replsets/replset3.js index 7f6f9505cc3..ee12d75a0bb 100644 --- a/jstests/replsets/replset3.js +++ b/jstests/replsets/replset3.js @@ -25,12 +25,8 @@ var doTest = function(signal) { print(phase++); - // Step down master. Note: this will close our connection! - try { - master.getDB("admin").runCommand({replSetStepDown: 0, force: 1}); - } catch (err) { - print("caught: " + err + " on stepdown"); - } + // Step down master. + assert.commandWorked(master.getDB("admin").runCommand({replSetStepDown: 0, force: 1})); print(phase++); |