diff options
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/libs/override_methods/validate_collections_on_shutdown.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/libs/override_methods/validate_collections_on_shutdown.js b/jstests/libs/override_methods/validate_collections_on_shutdown.js index 9ae2de460cb..a2dafb1560d 100644 --- a/jstests/libs/override_methods/validate_collections_on_shutdown.js +++ b/jstests/libs/override_methods/validate_collections_on_shutdown.js @@ -105,9 +105,7 @@ MongoRunner.validateCollectionsCallback = function(port) { function(conn) { const res = conn.adminCommand({listDatabases: 1}); if (!res.ok) { - // TODO: SERVER-31916 for the KeyNotFound error - assert.commandFailedWithCode( - res, [ErrorCodes.Unauthorized, ErrorCodes.KeyNotFound]); + assert.commandFailedWithCode(res, ErrorCodes.Unauthorized); return {shouldStop: true, reason: "cannot run listDatabases"}; } assert.commandWorked(res); |