diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-10-22 11:18:50 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-10-23 09:50:35 -0400 |
commit | 3db9d1338c4d15b9b937516676645fd26d5f0a23 (patch) | |
tree | 639f8de38537f721aeeeb4c2eb804e9212428d65 /jstests/sharding/shard_keycount.js | |
parent | c48ff0ba613fdafd51d26f664371522837809a9d (diff) | |
download | mongo-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/shard_keycount.js')
-rw-r--r-- | jstests/sharding/shard_keycount.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/jstests/sharding/shard_keycount.js b/jstests/sharding/shard_keycount.js index 408774785c8..5702b59dc84 100644 --- a/jstests/sharding/shard_keycount.js +++ b/jstests/sharding/shard_keycount.js @@ -1,9 +1,10 @@ // Tests splitting a chunk twice +(function() { -s = new ShardingTest( "shard_keycount" , 2, 0, 1, /* chunkSize */1); - -// Kill balancer -s.config.settings.update({ _id: "balancer" }, { $set : { stopped: true } }, true ) +var s = new ShardingTest({ name: "shard_keycount", + shards: 2, + mongos: 1, + other:{ chunkSize: 1 } }); dbName = "test" collName = "foo" @@ -45,3 +46,5 @@ coll.update({ _id : 3 }, { _id : 3 }) s.adminCommand({ split : ns, find : { _id : 3 } }) s.stop(); + +}); |