diff options
author | Matt Kangas <matt.kangas@mongodb.com> | 2014-10-21 17:19:30 -0400 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2014-10-23 12:06:37 -0400 |
commit | 602fa05f61b61835b92c8efed2e3354d92ebbe66 (patch) | |
tree | a26c706aed9c15dc682ac503e4167670858ca7c9 /jstests/noPassthroughWithMongod | |
parent | c76d80bce0212fe9770ddb6876878eb16014769b (diff) | |
download | mongo-602fa05f61b61835b92c8efed2e3354d92ebbe66.tar.gz |
SERVER-10824 sh.enableBalancing() now requires an argument
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r-- | jstests/noPassthroughWithMongod/no_balance_collection.js | 5 |
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() |