diff options
author | Nicholas Zolnierz <nicholas.zolnierz@mongodb.com> | 2019-09-13 19:02:37 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-13 19:02:37 +0000 |
commit | 9d07c9c18090bcbeaf40eaebf584de5d1b17a74f (patch) | |
tree | 233130bd66865315a80966e94ed607e4f2d59e1f | |
parent | c4467548514ff07721f4de215b3b74d1111ee9d1 (diff) | |
download | mongo-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.js | 2 |
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. |