diff options
author | Kevin Albertson <kevin.albertson@10gen.com> | 2017-12-29 12:53:14 -0500 |
---|---|---|
committer | Kevin Albertson <kevin.albertson@10gen.com> | 2018-01-11 10:47:49 -0500 |
commit | 5e28f4a35229422ec48ba7611e67b414b0eeb77f (patch) | |
tree | 53f06c5ec5491bc7360396db90aa804c0fc58536 /jstests/libs | |
parent | 9d1f323a131ba5e3e1af79973ae79910de10a957 (diff) | |
download | mongo-5e28f4a35229422ec48ba7611e67b414b0eeb77f.tar.gz |
SERVER-31335 cmd assertions check write errors
Diffstat (limited to 'jstests/libs')
-rw-r--r-- | jstests/libs/assert_schema_match.js | 4 |
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"); } } |