0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

SERVER-44358 Change modify_metadata_when_durable_catalog_entry_full.js to also check for 'BSONObjectTooLarge'

This commit is contained in:
Gregory Wlodarek 2019-11-01 14:23:35 +00:00 committed by evergreen
parent 6e1889fb79
commit 266ce1569a

View File

@ -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);