summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Zolnierz <nicholas.zolnierz@mongodb.com>2019-09-13 19:02:37 +0000
committerevergreen <evergreen@mongodb.com>2019-09-13 19:02:37 +0000
commit9d07c9c18090bcbeaf40eaebf584de5d1b17a74f (patch)
tree233130bd66865315a80966e94ed607e4f2d59e1f
parentc4467548514ff07721f4de215b3b74d1111ee9d1 (diff)
downloadmongo-9d07c9c18090bcbeaf40eaebf584de5d1b17a74f.tar.gz
SERVER-43204 Relax assertion in internal_js_reduce.js to account for failure in Value construction
-rw-r--r--jstests/aggregation/accumulators/internal_js_reduce.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/accumulators/internal_js_reduce.js b/jstests/aggregation/accumulators/internal_js_reduce.js
index 16583bf2315..f754b33438f 100644
--- a/jstests/aggregation/accumulators/internal_js_reduce.js
+++ b/jstests/aggregation/accumulators/internal_js_reduce.js
@@ -79,7 +79,7 @@ for (let i = 0; i < nDocs; i++) {
bulk.insert({word: "hello", val: "a".repeat(longStringLength)});
}
assert.commandWorked(bulk.execute());
-assert.commandFailedWithCode(db.runCommand(command), ErrorCodes.BSONObjectTooLarge);
+assert.commandFailedWithCode(db.runCommand(command), [ErrorCodes.BSONObjectTooLarge, 16493]);
//
// Test that the accumulator correctly fails for invalid arguments.