summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2019-02-04 17:57:00 -0500
committerMatthew Russotto <matthew.russotto@10gen.com>2019-02-12 11:07:46 -0500
commitc3a72d61dc8ab4aa32fae400c74b06360a572537 (patch)
tree644f7b08bafd1e3d8e0a7ca856093c50c97ed3ff /jstests/libs
parent530a26bc5387de3dd131a18801a6c3253c4f3220 (diff)
downloadmongo-c3a72d61dc8ab4aa32fae400c74b06360a572537.tar.gz
SERVER-38516 Remove “closeConnectionsOnStepdown” flag and fix tests broken by this
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/override_methods/continuous_stepdown.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/jstests/libs/override_methods/continuous_stepdown.js b/jstests/libs/override_methods/continuous_stepdown.js
index d9ea61240bd..9fd8668a663 100644
--- a/jstests/libs/override_methods/continuous_stepdown.js
+++ b/jstests/libs/override_methods/continuous_stepdown.js
@@ -69,9 +69,7 @@ let ContinuousStepdown;
try {
// The config primary may unexpectedly step down during startup if under heavy
- // load and too slowly processing heartbeats. When it steps down, it closes all of
- // its connections. ReplSetTest will therefore retry discovery of the replica set's
- // config.
+ // load and too slowly processing heartbeats.
const replSet = new ReplSetTest(seedNode);
let primary = replSet.getPrimary();
@@ -79,15 +77,8 @@ let ContinuousStepdown;
while (stopCounter.getCount() > 0) {
print("*** Stepping down " + primary);
- assert.throws(function() {
- let result = primary.adminCommand(
- {replSetStepDown: options.stepdownDurationSecs, force: true});
- print("replSetStepDown command did not throw and returned: " +
- tojson(result));
-
- // The call to replSetStepDown should never succeed.
- assert.commandWorked(result);
- });
+ assert.commandWorked(primary.adminCommand(
+ {replSetStepDown: options.stepdownDurationSecs, force: true}));
// Wait for primary to get elected and allow the test to make some progress
// before attempting another stepdown.