summaryrefslogtreecommitdiff
path: root/jstests/slow1
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-10-22 11:18:50 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-10-23 09:50:35 -0400
commit3db9d1338c4d15b9b937516676645fd26d5f0a23 (patch)
tree639f8de38537f721aeeeb4c2eb804e9212428d65 /jstests/slow1
parentc48ff0ba613fdafd51d26f664371522837809a9d (diff)
downloadmongo-3db9d1338c4d15b9b937516676645fd26d5f0a23.tar.gz
SERVER-21009 Remove usages of the multi-argument ShardingTest constructor
No functional changes, just converting everything to use the JSON-based constructor. Also moves some sharding-specific tests out of noPassthroughWithMongod and under the sharding suite.
Diffstat (limited to 'jstests/slow1')
-rw-r--r--jstests/slow1/sharding_multiple_collections.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/jstests/slow1/sharding_multiple_collections.js b/jstests/slow1/sharding_multiple_collections.js
index 922087ba2aa..ca13cbc3c40 100644
--- a/jstests/slow1/sharding_multiple_collections.js
+++ b/jstests/slow1/sharding_multiple_collections.js
@@ -1,6 +1,10 @@
-// multcollections.js
+(function() {
-s = new ShardingTest( "multcollections" , 2 , 1 , 1 , { chunksize : 1, enableBalancer : true } );
+var s = new ShardingTest({ name: "multcollections",
+ shards: 2,
+ mongos: 1,
+ verbose: 1,
+ other: { chunkSize: 1, enableBalancer : true } });
s.adminCommand( { enablesharding : "test" } );
db = s.getDB( "test" )
@@ -52,5 +56,6 @@ while ( 1 ){
break
}
-s.stop()
+s.stop();
+})();