summaryrefslogtreecommitdiff
path: root/jstests/core/doc_validation_error.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/doc_validation_error.js')
-rw-r--r--jstests/core/doc_validation_error.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/doc_validation_error.js b/jstests/core/doc_validation_error.js
index 22815a5d787..3c2f9b1d918 100644
--- a/jstests/core/doc_validation_error.js
+++ b/jstests/core/doc_validation_error.js
@@ -42,8 +42,8 @@ function executeDocumentValidationTestCase(testCase) {
// Verify that document validation failed and the document validation error matches the
// expected.
assertDocumentValidationFailure(result, coll);
- assert.docEq(result.getWriteError().errInfo.details,
- testCase.expectedError,
+ assert.docEq(testCase.expectedError,
+ result.getWriteError().errInfo.details,
`Test case ${testCase.name}`);
}