summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorMatt Kangas <matt.kangas@mongodb.com>2014-10-21 17:19:30 -0400
committerMatt Kangas <matt.kangas@mongodb.com>2014-10-23 12:06:37 -0400
commit602fa05f61b61835b92c8efed2e3354d92ebbe66 (patch)
treea26c706aed9c15dc682ac503e4167670858ca7c9 /jstests/noPassthroughWithMongod
parentc76d80bce0212fe9770ddb6876878eb16014769b (diff)
downloadmongo-602fa05f61b61835b92c8efed2e3354d92ebbe66.tar.gz
SERVER-10824 sh.enableBalancing() now requires an argument
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/no_balance_collection.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/no_balance_collection.js b/jstests/noPassthroughWithMongod/no_balance_collection.js
index 6f6c196510d..8cc580a29e0 100644
--- a/jstests/noPassthroughWithMongod/no_balance_collection.js
+++ b/jstests/noPassthroughWithMongod/no_balance_collection.js
@@ -2,6 +2,11 @@
var st = new ShardingTest({ shards : 2, mongos : 1, verbose : 1 })
+// First, test that shell helpers require an argument
+assert.throws(sh.disableBalancing, [], "sh.disableBalancing requires a collection");
+assert.throws(sh.enableBalancing, [], "sh.enableBalancing requires a collection");
+
+
// Initially stop balancing
st.stopBalancer()