diff options
author | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-08-27 11:24:46 -0400 |
---|---|---|
committer | Matthew Saltz <matthew.saltz@mongodb.com> | 2018-08-27 15:59:46 -0400 |
commit | 0fe87e465305a82419d49b71bb9618701222065b (patch) | |
tree | b7814e1db8e327c0edd73c8f064e1a9baa806950 /jstests/sharding | |
parent | 120a969b8bad82a3ae7cda14acd4a888e2954a0f (diff) | |
download | mongo-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.js | 14 |
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}, ], }); |