From c3a72d61dc8ab4aa32fae400c74b06360a572537 Mon Sep 17 00:00:00 2001 From: Matthew Russotto Date: Mon, 4 Feb 2019 17:57:00 -0500 Subject: =?UTF-8?q?SERVER-38516=20Remove=20=E2=80=9CcloseConnectionsOnStep?= =?UTF-8?q?down=E2=80=9D=20flag=20and=20fix=20tests=20broken=20by=20this?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jstests/sharding/change_stream_shard_failover.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'jstests/sharding/change_stream_shard_failover.js') 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(); -- cgit v1.2.1