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/auto2.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/auto2.js')
-rw-r--r-- | jstests/sharding/auto2.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/jstests/sharding/auto2.js b/jstests/sharding/auto2.js index b0ce66292d5..0fc17a55124 100644 --- a/jstests/sharding/auto2.js +++ b/jstests/sharding/auto2.js @@ -1,6 +1,9 @@ -// auto2.js +(function() { -s = new ShardingTest( "auto2" , 2 , 1 , 2 ); +var s = new ShardingTest({ name: "auto2", + shards: 2, + mongos: 2, + verbose: 1 }); s.adminCommand( { enablesharding : "test" } ); s.ensurePrimaryShard('test', 'shard0001'); @@ -83,8 +86,6 @@ for ( i=0; i<j*100; i++ ){ } } - - s.printChangeLog(); print( "missing: " + tojson( missing ) ) @@ -147,3 +148,5 @@ assert.throws( function(){ s.getDB( "test" ).foo.find().sort( { s : 1 } ).forEac print( "checkpoint G") s.stop(); + +})(); |