diff options
Diffstat (limited to 'jstests/aggregation/accumulators/accumulator_js.js')
| -rw-r--r-- | jstests/aggregation/accumulators/accumulator_js.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/aggregation/accumulators/accumulator_js.js b/jstests/aggregation/accumulators/accumulator_js.js index 3a389851e24..16e9a62116a 100644 --- a/jstests/aggregation/accumulators/accumulator_js.js +++ b/jstests/aggregation/accumulators/accumulator_js.js @@ -192,8 +192,9 @@ command.pipeline = [{ } } }]; -// 16554 means "$add only supports numeric or date types" -assert.commandFailedWithCode(db.runCommand(command), 16554); +// ErrorCodes.TypeMismatch means "$add only supports numeric or date types". Code 16554 represented +// a type mismatch before 6.0 for this specific check. +assert.commandFailedWithCode(db.runCommand(command), [16554, ErrorCodes.TypeMismatch]); // Test that initArgs can have a different length per group. assert(db.accumulator_js.drop()); |
