summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorMisha Tyulenev <misha.tyulenev@10gen.com>2020-01-09 21:58:05 +0000
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2020-01-27 15:38:02 -0500
commitc13b428bc57ac9742a200e3e6a7a0e1b1cf7ab36 (patch)
treeff00645dfd56e40727c5b1823d47d9614343e45c /jstests/libs
parentee7e57e2276ebe05211ff9deb463bc9f281f340a (diff)
downloadmongo-c13b428bc57ac9742a200e3e6a7a0e1b1cf7ab36.tar.gz
SERVER-43516: complete TODO listed in validate_collections_on_shutdown.js
Diffstat (limited to 'jstests/libs')
-rw-r--r--jstests/libs/override_methods/validate_collections_on_shutdown.js4
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);