summaryrefslogtreecommitdiff
path: root/jstests/sharding/move_chunk_with_session_helper.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/sharding/move_chunk_with_session_helper.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/sharding/move_chunk_with_session_helper.js')
-rw-r--r--jstests/sharding/move_chunk_with_session_helper.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/jstests/sharding/move_chunk_with_session_helper.js b/jstests/sharding/move_chunk_with_session_helper.js
index 6728a245bbe..bf4653eb18a 100644
--- a/jstests/sharding/move_chunk_with_session_helper.js
+++ b/jstests/sharding/move_chunk_with_session_helper.js
@@ -27,11 +27,8 @@ var testMoveChunkWithSession = function(
checkRetryResultFunc(result, assert.commandWorked(testDB.runCommand(cmdObj)));
checkDocumentsFunc(coll);
- try {
- st.rs1.getPrimary().adminCommand({replSetStepDown: 60, secondaryCatchUpPeriodSecs: 30});
- } catch (excep) {
- print('Expected exception due to step down: ' + tojson(excep));
- }
+ assert.commandWorked(
+ st.rs1.getPrimary().adminCommand({replSetStepDown: 60, secondaryCatchUpPeriodSecs: 30}));
st.rs1.awaitNodesAgreeOnPrimary();
st.configRS.nodes.concat([st.s]).forEach(function awaitNode(conn) {