summaryrefslogtreecommitdiff
path: root/jstests/sharding/change_stream_shard_failover.js
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/sharding/change_stream_shard_failover.js
parent530a26bc5387de3dd131a18801a6c3253c4f3220 (diff)
downloadmongo-c3a72d61dc8ab4aa32fae400c74b06360a572537.tar.gz
SERVER-38516 Remove “closeConnectionsOnStepdown” flag and fix tests broken by this
Diffstat (limited to 'jstests/sharding/change_stream_shard_failover.js')
-rw-r--r--jstests/sharding/change_stream_shard_failover.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/jstests/sharding/change_stream_shard_failover.js b/jstests/sharding/change_stream_shard_failover.js
index 27a141bcfed..f4b3007bd30 100644
--- a/jstests/sharding/change_stream_shard_failover.js
+++ b/jstests/sharding/change_stream_shard_failover.js
@@ -74,11 +74,7 @@ TestData.skipCheckingUUIDsConsistentAcrossCluster = true;
// Make one of the primaries step down.
const oldPrimary = st.rs0.getPrimary();
- const stepDownError = assert.throws(function() {
- oldPrimary.adminCommand({replSetStepDown: 300, force: true});
- });
- assert(isNetworkError(stepDownError),
- "replSetStepDown did not disconnect client; failed with " + tojson(stepDownError));
+ assert.commandWorked(oldPrimary.adminCommand({replSetStepDown: 300, force: true}));
st.rs0.awaitNodesAgreeOnPrimary();
const newPrimary = st.rs0.getPrimary();