diff options
Diffstat (limited to 'jstests/replsets/stepdown.js')
-rw-r--r-- | jstests/replsets/stepdown.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/stepdown.js b/jstests/replsets/stepdown.js index 3a17b0ec3b2..67f10f9bcfd 100644 --- a/jstests/replsets/stepdown.js +++ b/jstests/replsets/stepdown.js @@ -36,12 +36,15 @@ printjson(result); assert.eq(result.ok, 0); print("\n do stepdown that should work"); +var threw = false; try { master.getDB("admin").runCommand({replSetStepDown: 50, force : true}); } catch (e) { print(e); + threw = true; } +assert(threw); var r2 = master.getDB("admin").runCommand({ismaster : 1}); assert.eq(r2.ismaster, false); |