summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Oyung <anton.oyung@mongodb.com>2019-10-22 15:01:52 +0000
committerevergreen <evergreen@mongodb.com>2019-10-22 15:01:52 +0000
commitd33751abc223bc31a5145f4ffe745012abd978ec (patch)
treeac903396734fd9658f555990978303e6599c56ad
parent563dc7451690efa475db5feda913098e777471da (diff)
downloadmongo-d33751abc223bc31a5145f4ffe745012abd978ec.tar.gz
SERVER-42631 Blacklist tests that use Mongo.logout() from stepdown suites
-rw-r--r--jstests/core/auth2.js2
-rw-r--r--jstests/libs/override_methods/network_error_and_txn_override.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/network_error_and_txn_override.js b/jstests/libs/override_methods/network_error_and_txn_override.js
index 37db2d7b554..11b2f4735ae 100644
--- a/jstests/libs/override_methods/network_error_and_txn_override.js
+++ b/jstests/libs/override_methods/network_error_and_txn_override.js
@@ -1081,6 +1081,11 @@ if (configuredForNetworkRetry()) {
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");
+ };
}
if (configuredForTxnOverride()) {