diff options
| author | Jack Mulrow <jack.mulrow@mongodb.com> | 2020-01-08 14:49:45 +0000 |
|---|---|---|
| committer | evergreen <evergreen@mongodb.com> | 2020-01-08 14:49:45 +0000 |
| commit | 08904dee65f2dacc2bf598b072b0dab727038f11 (patch) | |
| tree | 8956a2363212d09cb501d5886740cb49546bb52a /jstests | |
| parent | 294f77ab029fc10fbf9373a68121898e72c22b08 (diff) | |
| download | mongo-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.js | 2 | ||||
| -rw-r--r-- | jstests/libs/override_methods/auto_retry_on_network_error.js | 5 |
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"); + }; })(); |
