diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-10-02 21:22:41 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-02 21:22:41 +0000 |
commit | 3a23860614f2d4b69381a561f5c39ec797920a58 (patch) | |
tree | 85ec7c4441ff92dfe26ebfdb821ef2a08aa0b073 /jstests/hooks | |
parent | 112ba53f3aed53d1ca9ae3171117007ccd6118bd (diff) | |
download | mongo-3a23860614f2d4b69381a561f5c39ec797920a58.tar.gz |
SERVER-43644 Update 'validate' shell helper to use an object instead of a boolean
Diffstat (limited to 'jstests/hooks')
-rw-r--r-- | jstests/hooks/validate_collections.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/hooks/validate_collections.js b/jstests/hooks/validate_collections.js index 879f249f42f..69085b8a1d6 100644 --- a/jstests/hooks/validate_collections.js +++ b/jstests/hooks/validate_collections.js @@ -24,8 +24,6 @@ function CollectionValidator() { assert.eq(typeof obj, 'object', 'The `obj` argument must be an object'); assert(obj.hasOwnProperty('full'), 'Please specify whether to use full validation'); - const full = obj.full; - // Failed collection validation results are saved in failed_res. let full_res = {ok: 1, failed_res: []}; @@ -58,7 +56,7 @@ function CollectionValidator() { let collInfo = db.getCollectionInfos(filter); for (let collDocument of collInfo) { const coll = db.getCollection(collDocument['name']); - const res = coll.validate(full); + const res = coll.validate(obj); if (!res.ok || !res.valid) { if (jsTest.options().skipValidationOnNamespaceNotFound && |