summaryrefslogtreecommitdiff
path: root/jstests/sharding
diff options
context:
space:
mode:
authorMatthew Saltz <matthew.saltz@mongodb.com>2018-08-27 11:24:46 -0400
committerMatthew Saltz <matthew.saltz@mongodb.com>2018-08-27 15:59:46 -0400
commit0fe87e465305a82419d49b71bb9618701222065b (patch)
treeb7814e1db8e327c0edd73c8f064e1a9baa806950 /jstests/sharding
parent120a969b8bad82a3ae7cda14acd4a888e2954a0f (diff)
downloadmongo-0fe87e465305a82419d49b71bb9618701222065b.tar.gz
SERVER-36760 Relax conditions for shard_existing_coll_chunk_count.js
Diffstat (limited to 'jstests/sharding')
-rw-r--r--jstests/sharding/shard_existing_coll_chunk_count.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/sharding/shard_existing_coll_chunk_count.js b/jstests/sharding/shard_existing_coll_chunk_count.js
index da76b57837f..c9689ea5646 100644
--- a/jstests/sharding/shard_existing_coll_chunk_count.js
+++ b/jstests/sharding/shard_existing_coll_chunk_count.js
@@ -81,12 +81,12 @@
// Confirm number of chunks for this stage.
var numChunks = getNumberChunks(coll.getFullName());
- assert.eq(numChunks,
- stage.expectedNumChunks,
- 'in ' + coll.getFullName() + ' expected ' + stage.expectedNumChunks +
- ' chunks for stage ' + stageNum + ', but found ' + numChunks +
- '\nopts: ' + tojson(opts) + '\nchunks:\n' +
- s.getChunksString(coll.getFullName()));
+ assert.gte(numChunks,
+ stage.expectedNumChunks,
+ 'in ' + coll.getFullName() + ' expected ' + stage.expectedNumChunks +
+ ' chunks for stage ' + stageNum + ', but found ' + numChunks +
+ '\nopts: ' + tojson(opts) + '\nchunks:\n' +
+ s.getChunksString(coll.getFullName()));
}
};
@@ -166,7 +166,7 @@
docSize: 514 * 1024,
stages: [
{numDocsToInsert: 10, expectedNumChunks: 10},
- {numDocsToInsert: 10, expectedNumChunks: 20},
+ {numDocsToInsert: 10, expectedNumChunks: 18},
],
});