diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2019-09-26 16:53:42 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-26 16:53:42 +0000 |
commit | 39bc70a2df250696b983bb26c7aba4e0c8f2d3ac (patch) | |
tree | 316814ba4e3cf0162785ca5a922f3f0ae341d91d /jstests | |
parent | 220255882c3047868b9ecd43a36de09b1ecbb5da (diff) | |
download | mongo-39bc70a2df250696b983bb26c7aba4e0c8f2d3ac.tar.gz |
SERVER-43200 Make auth/mongoURIAuth.js robust to slow commands
(cherry picked from commit 12915c50e2308507c2016d31e85f456d1278243d)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/auth/mongoURIAuth.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/auth/mongoURIAuth.js b/jstests/auth/mongoURIAuth.js index 7f60b2e750e..329dd0ff35a 100644 --- a/jstests/auth/mongoURIAuth.js +++ b/jstests/auth/mongoURIAuth.js @@ -5,7 +5,10 @@ 'use strict'; const runURIAuthTest = function(userMech, uriMech, authMechanism, regexMechanism) { - const conn = MongoRunner.runMongod({auth: ""}); + const conn = MongoRunner.runMongod({ + auth: "", + slowms: 30000, // Don't log slow operations to improve test reliability + }); const adminDB = conn.getDB("admin"); adminDB.createUser({ @@ -69,4 +72,4 @@ jsTestLog("Test that SCRAM-SHA-1 is the default authentication method."); runURIAuthTest(false, false, SCRAM_SHA_256, SCRAM_SHA_256_regex); -})();
\ No newline at end of file +})(); |