summaryrefslogtreecommitdiff
path: root/jstests/replsets/dbcheck.js
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2019-02-07 15:52:06 -0500
committerMatthew Russotto <matthew.russotto@10gen.com>2019-02-12 11:07:46 -0500
commit77dccdfdc54eab46031f465a2e46570cc5c3c52f (patch)
tree9c7b1449f6dedd7076256d314aee52637445f43c /jstests/replsets/dbcheck.js
parentc3a72d61dc8ab4aa32fae400c74b06360a572537 (diff)
downloadmongo-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/dbcheck.js')
-rw-r--r--jstests/replsets/dbcheck.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/jstests/replsets/dbcheck.js b/jstests/replsets/dbcheck.js
index c574e42a5a6..07b268bb0ec 100644
--- a/jstests/replsets/dbcheck.js
+++ b/jstests/replsets/dbcheck.js
@@ -313,12 +313,8 @@
let nodeId = replSet.getNodeId(master);
assert.commandWorked(db.runCommand({dbCheck: multiBatchSimpleCollName}));
- // Step down the master. This will close our connection.
- try {
- master.getDB("admin").runCommand({replSetStepDown: 0, force: true});
- // (throwing an exception in the process, which we will ignore).
- } catch (e) {
- }
+ // Step down the master.
+ assert.commandWorked(master.getDB("admin").runCommand({replSetStepDown: 0, force: true}));
// Wait for the cluster to come up.
replSet.awaitSecondaryNodes();