diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-03-21 11:24:00 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2017-03-21 17:13:41 -0400 |
commit | 6b50dfdb11392709c2dd0462098e3793e962ce78 (patch) | |
tree | 16e1d6c60559ffd07a273285c6265d5434bb6c92 /jstests/aggregation/testshard1.js | |
parent | b25e825ede4acd47bfdae25edef44c497ee2233e (diff) | |
download | mongo-6b50dfdb11392709c2dd0462098e3793e962ce78.tar.gz |
SERVER-28409 Decrease verbosity during testshard1.js
Diffstat (limited to 'jstests/aggregation/testshard1.js')
-rw-r--r-- | jstests/aggregation/testshard1.js | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/jstests/aggregation/testshard1.js b/jstests/aggregation/testshard1.js index 42afc5b72e6..9062bc63521 100644 --- a/jstests/aggregation/testshard1.js +++ b/jstests/aggregation/testshard1.js @@ -2,17 +2,8 @@ load('jstests/aggregation/extras/utils.js'); load('jstests/libs/analyze_plan.js'); // For planHasStage. jsTestLog("Creating sharded cluster"); -var shardedAggTest = new ShardingTest({ - shards: 2, - mongos: 1, - other: { - chunkSize: 1, - enableBalancer: true, - mongosOptions: {verbose: ''}, - shardOptions: {verbose: ''}, - configOptions: {verbose: ''}, - } -}); +var shardedAggTest = + new ShardingTest({shards: 2, mongos: 1, other: {chunkSize: 1, enableBalancer: true}}); jsTestLog("Setting up sharded cluster"); shardedAggTest.adminCommand({enablesharding: "aggShard"}); @@ -199,7 +190,6 @@ testAvgStdDev(); function testSample() { jsTestLog('testing $sample'); - shardedAggTest.printCollectionInfo(db.ts1.getFullName()); [0, 1, 10, nItems, nItems + 1].forEach(function(size) { var res = db.ts1.aggregate([{$sample: {size: size}}]).toArray(); assert.eq(res.length, Math.min(nItems, size)); @@ -207,13 +197,6 @@ function testSample() { } testSample(); -// SERVER-26742 Attempt to reproduce an incorrect number of results being returned. -testSample(); -testSample(); -testSample(); -testSample(); -testSample(); - jsTestLog('test $out by copying source collection verbatim to output'); var outCollection = db.ts1_out; var res = db.ts1.aggregate([{$out: outCollection.getName()}]).toArray(); |