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:
parent
6e1889fb79
commit
266ce1569a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user