summaryrefslogtreecommitdiff
path: root/jstests/sharding/user_flags_sharded.js
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/sharding/user_flags_sharded.js
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/sharding/user_flags_sharded.js')
-rw-r--r--jstests/sharding/user_flags_sharded.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/jstests/sharding/user_flags_sharded.js b/jstests/sharding/user_flags_sharded.js
index e5b5f8a41dd..f2a8d626492 100644
--- a/jstests/sharding/user_flags_sharded.js
+++ b/jstests/sharding/user_flags_sharded.js
@@ -1,8 +1,8 @@
// Test that when user flags are set on a collection,
// then collection is sharded, flags get carried over.
+(function() {
if (jsTest.options().storageEngine === "mmapv1") {
-
// the dbname and collection we'll be working with
var dbname = "testDB";
var coll = "userFlagsColl";
@@ -39,7 +39,7 @@ if (jsTest.options().storageEngine === "mmapv1") {
assert.eq( collstats.userFlags , 0 , "modified collection should have userFlags = 0 ");
// start up a new sharded cluster, and add previous mongod
- var s = new ShardingTest( "user_flags", 1 );
+ var s = new ShardingTest({ name: "user_flags", shards: 1 });
assert( s.admin.runCommand( { addshard: newShardConn.host , name: "myShard" } ).ok,
"did not accept new shard" );
@@ -60,5 +60,6 @@ if (jsTest.options().storageEngine === "mmapv1") {
MongoRunner.stopMongod(newShardConn);
s.stop();
-
}
+
+})();