summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2020-01-08 14:49:45 +0000
committerevergreen <evergreen@mongodb.com>2020-01-08 14:49:45 +0000
commit08904dee65f2dacc2bf598b072b0dab727038f11 (patch)
tree8956a2363212d09cb501d5886740cb49546bb52a /jstests
parent294f77ab029fc10fbf9373a68121898e72c22b08 (diff)
downloadmongo-08904dee65f2dacc2bf598b072b0dab727038f11.tar.gz
SERVER-42631 Blacklist tests that use Mongo.logout() from stepdown suites
(cherry picked from commit d33751abc223bc31a5145f4ffe745012abd978ec)
Diffstat (limited to 'jstests')
-rw-r--r--jstests/core/auth2.js2
-rw-r--r--jstests/libs/override_methods/auto_retry_on_network_error.js5
2 files changed, 6 insertions, 1 deletions
diff --git a/jstests/core/auth2.js b/jstests/core/auth2.js
index 12eb19c3298..23f878f806f 100644
--- a/jstests/core/auth2.js
+++ b/jstests/core/auth2.js
@@ -1,5 +1,5 @@
// just make sure logout doesn't break anything
-// @tags: [requires_auth]
+// @tags: [requires_auth , requires_non_retryable_commands]
// SERVER-724
db.runCommand({logout: 1});
diff --git a/jstests/libs/override_methods/auto_retry_on_network_error.js b/jstests/libs/override_methods/auto_retry_on_network_error.js
index a59e40f83ff..737980e7b1d 100644
--- a/jstests/libs/override_methods/auto_retry_on_network_error.js
+++ b/jstests/libs/override_methods/auto_retry_on_network_error.js
@@ -393,4 +393,9 @@
return retVal;
};
+
+ Mongo.prototype.logout = function() {
+ throw new Error(
+ "logout() isn't resilient to network errors. Please add requires_non_retryable_commands to your test");
+ };
})();