summaryrefslogtreecommitdiff
path: root/jstests/hooks
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-10-02 21:22:41 +0000
committerevergreen <evergreen@mongodb.com>2019-10-02 21:22:41 +0000
commit3a23860614f2d4b69381a561f5c39ec797920a58 (patch)
tree85ec7c4441ff92dfe26ebfdb821ef2a08aa0b073 /jstests/hooks
parent112ba53f3aed53d1ca9ae3171117007ccd6118bd (diff)
downloadmongo-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.js4
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 &&