summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-11-01 14:23:35 +0000
committerevergreen <evergreen@mongodb.com>2019-11-01 14:23:35 +0000
commit266ce1569a5c1fba667e865d5143172ce4f80d57 (patch)
tree31c4dde07c8b49661be324a752f1cef250c61189 /jstests/noPassthroughWithMongod
parent6e1889fb793e1927a5ca695c8839f9184e5d8aa4 (diff)
downloadmongo-266ce1569a5c1fba667e865d5143172ce4f80d57.tar.gz
SERVER-44358 Change modify_metadata_when_durable_catalog_entry_full.js to also check for 'BSONObjectTooLarge'
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/modify_metadata_when_durable_catalog_entry_full.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthroughWithMongod/modify_metadata_when_durable_catalog_entry_full.js b/jstests/noPassthroughWithMongod/modify_metadata_when_durable_catalog_entry_full.js
index b9c1e12401b..82cfa2b8bf6 100644
--- a/jstests/noPassthroughWithMongod/modify_metadata_when_durable_catalog_entry_full.js
+++ b/jstests/noPassthroughWithMongod/modify_metadata_when_durable_catalog_entry_full.js
@@ -76,7 +76,8 @@ assert.commandWorked(testDB.createCollection(smallCollName));
let smallColl = testDB.getCollection(smallCollName);
// The 'top' command should fail because the response would be too big to return.
-assert.commandFailedWithCode(largeColl.getDB().adminCommand('top'), 13548);
+assert.commandFailedWithCode(largeColl.getDB().adminCommand('top'),
+ [13548, ErrorCodes.BSONObjectTooLarge]);
// Adding indexes to the large collection should fail but not crash the server.
assert.commandFailedWithCode(largeColl.createIndex({x: 1}), ErrorCodes.BSONObjectTooLarge);