summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-07-31 09:09:14 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-04 19:06:53 +0000
commite8595e4b7a2505a4dffb9085f65be0026a7f9ba9 (patch)
tree651500f2dbaab538b71054f02052d6dd2b8aeeaf
parentcd8324afbe50240fe47db8b19d916ab8fdcbab23 (diff)
downloadmongo-e8595e4b7a2505a4dffb9085f65be0026a7f9ba9.tar.gz
SERVER-50039 Timing error in dbadmin.js test
(cherry picked from commit 5906d967c3144d09fab6a4cc1daddb295df19ffb)
-rw-r--r--jstests/core/dbadmin.js2
-rw-r--r--jstests/libs/parallelTester.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/jstests/core/dbadmin.js b/jstests/core/dbadmin.js
index 3d2483b0334..d624aaed62c 100644
--- a/jstests/core/dbadmin.js
+++ b/jstests/core/dbadmin.js
@@ -23,7 +23,7 @@ var localTimeSkew = x.localTime - now;
if (localTimeSkew >= 50) {
print("Warning: localTimeSkew " + localTimeSkew + " > 50ms.");
}
-assert.lt(localTimeSkew, 500, "isMaster.localTime");
+assert.lt(localTimeSkew, 60 * 60 * 1000 /* one minute */, "isMaster.localTime");
var before = db.runCommand("serverStatus");
print(before.uptimeEstimate);
diff --git a/jstests/libs/parallelTester.js b/jstests/libs/parallelTester.js
index f158cd77e00..981067c3c94 100644
--- a/jstests/libs/parallelTester.js
+++ b/jstests/libs/parallelTester.js
@@ -213,6 +213,9 @@ if (typeof _threadInject != "undefined") {
// This test causes collMod commands to hang, which interferes with other tests running
// collMod.
"crud_ops_do_not_throw_locktimeout.js",
+
+ // Can fail if isMaster takes too long on a loaded machine.
+ "dbadmin.js",
]);
// The following tests cannot run when shell readMode is legacy.