diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2021-01-21 11:08:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-22 10:25:46 +0000 |
commit | f3617ccb88b713884ae8e3853eefa42e84feda6d (patch) | |
tree | 48f7d199e4355d5a33858a9cd57ae060c5e96a20 /jstests/sharding/limit_push.js | |
parent | f2edde9de318c91ad7e711cea6dcc13726fce4b0 (diff) | |
download | mongo-f3617ccb88b713884ae8e3853eefa42e84feda6d.tar.gz |
SERVER-53105: Amend tests that target config.chunks by ns to target by ns or uuid depending on collection timestamp
Diffstat (limited to 'jstests/sharding/limit_push.js')
-rw-r--r-- | jstests/sharding/limit_push.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/sharding/limit_push.js b/jstests/sharding/limit_push.js index a6773f1263e..f3cd1245a33 100644 --- a/jstests/sharding/limit_push.js +++ b/jstests/sharding/limit_push.js @@ -2,6 +2,8 @@ // See: http://jira.mongodb.org/browse/SERVER-1896 (function() { +load("jstests/sharding/libs/find_chunks_util.js"); + var s = new ShardingTest({name: "limit_push", shards: 2, mongos: 1}); var db = s.getDB("test"); @@ -27,7 +29,8 @@ s.adminCommand({ }); // Check that the chunck have split correctly -assert.eq(2, s.config.chunks.count({"ns": "test.limit_push"}), "wrong number of chunks"); +assert.eq( + 2, findChunksUtil.countChunksForNs(s.config, "test.limit_push"), "wrong number of chunks"); // The query is asking for the maximum value below a given value // db.limit_push.find( { x : { $lt : 60} } ).sort( { x:-1} ).limit(1) |