diff options
author | Greg Studer <greg@10gen.com> | 2014-01-17 16:52:59 -0500 |
---|---|---|
committer | Greg Studer <greg@10gen.com> | 2014-01-17 16:52:59 -0500 |
commit | 344596a194f5ae2ac474d24a744f1caa5877023f (patch) | |
tree | 0e24c2d213d85ca08cf2482ff263128197c2e89a | |
parent | 3b5b31f42d390e9da23f66e78a300d997ae653c4 (diff) | |
download | mongo-344596a194f5ae2ac474d24a744f1caa5877023f.tar.gz |
SERVER-12274 revert incorrect test changes to server7781.js
-rw-r--r-- | jstests/aggregation/bugs/server7781.js | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/jstests/aggregation/bugs/server7781.js b/jstests/aggregation/bugs/server7781.js index b192efa448e..6ca413e3a21 100644 --- a/jstests/aggregation/bugs/server7781.js +++ b/jstests/aggregation/bugs/server7781.js @@ -41,7 +41,7 @@ function checkOutput(cmdOut, aggOut, expectedNum) { assert(allSame); } - + // We use this to generate points. Using a single global to avoid reseting RNG in each pass. var pointMaker = new GeoNearRandomTest(coll); @@ -60,14 +60,8 @@ function test(db, sharded, indexType) { db.adminCommand({moveChunk: db[coll].getFullName(), find: {rand: i/10}, to: shards[i%shards.length]}); } -try{ + assert.eq(config.chunks.count({'ns': db[coll].getFullName()}), 10); -} -catch( e) { - printjson(e); - printjson(configD.find().toArray()); - throw e; -} } // insert points @@ -124,9 +118,7 @@ catch( e) { test(db, false, '2d'); test(db, false, '2dsphere'); -sharded = new ShardingTest({shards: 3, verbose: 0, mongos: 1, verbose : 3 }); -configD = sharded.c0.getCollection("config.chunks"); -assert.neq(null, configD); +var sharded = new ShardingTest({shards: 3, verbose: 0, mongos: 1}); sharded.stopBalancer(); sharded.adminCommand( { enablesharding : "test" } ); |