From 266ce1569a5c1fba667e865d5143172ce4f80d57 Mon Sep 17 00:00:00 2001 From: Gregory Wlodarek Date: Fri, 1 Nov 2019 14:23:35 +0000 Subject: [PATCH] SERVER-44358 Change modify_metadata_when_durable_catalog_entry_full.js to also check for 'BSONObjectTooLarge' --- .../modify_metadata_when_durable_catalog_entry_full.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);