summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorKevin Albertson <kevin.albertson@10gen.com>2017-12-29 12:53:14 -0500
committerKevin Albertson <kevin.albertson@10gen.com>2018-01-11 10:47:49 -0500
commit5e28f4a35229422ec48ba7611e67b414b0eeb77f (patch)
tree53f06c5ec5491bc7360396db90aa804c0fc58536 /jstests/libs
parent9d1f323a131ba5e3e1af79973ae79910de10a957 (diff)
downloadmongo-5e28f4a35229422ec48ba7611e67b414b0eeb77f.tar.gz
SERVER-31335 cmd assertions check write errors
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/assert_schema_match.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/libs/assert_schema_match.js b/jstests/libs/assert_schema_match.js
index 54ac5205e9e..46d38fa3537 100644
--- a/jstests/libs/assert_schema_match.js
+++ b/jstests/libs/assert_schema_match.js
@@ -37,7 +37,7 @@ function assertSchemaMatch(coll, schema, doc, valid) {
assert.writeOK(res, errmsg + " during insert document validation");
} else {
assert.writeErrorWithCode(res,
- ErrorCodes.DocumentFailedValidation,
+ ErrorCodes.DocumentValidationFailure,
errmsg + " during insert document validation");
}
@@ -57,7 +57,7 @@ function assertSchemaMatch(coll, schema, doc, valid) {
assert.writeOK(res, errmsg + " during update document validation in strict mode");
} else {
assert.writeErrorWithCode(res,
- ErrorCodes.DocumentFailedValidation,
+ ErrorCodes.DocumentValidationFailure,
errmsg + " during update document validation in strict mode");
}
}