summaryrefslogtreecommitdiff
path: root/jstests/aggregation/bugs/server6239.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/bugs/server6239.js')
-rw-r--r--jstests/aggregation/bugs/server6239.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/bugs/server6239.js b/jstests/aggregation/bugs/server6239.js
index a88bf7527d6..c20117651f8 100644
--- a/jstests/aggregation/bugs/server6239.js
+++ b/jstests/aggregation/bugs/server6239.js
@@ -22,7 +22,7 @@ function fail(expression, code) {
test({$subtract: ['$date', '$date']}, NumberLong(0));
test({$subtract: ['$date', '$num']}, new Date(millis - num));
-fail({$subtract: ['$num', '$date']}, 16556);
+fail({$subtract: ['$num', '$date']}, [16556, ErrorCodes.TypeMismatch]);
fail({$add: ['$date', '$date']}, 16612);
test({$add: ['$date', '$num']}, new Date(millis + num));