diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2020-07-31 09:09:14 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-04 19:06:49 +0000 |
commit | 8e1c921240c48475a87ee16d6b6ff9d74c5d149b (patch) | |
tree | e412d570419cf409057e491d0e2e78c44e859bcb | |
parent | 706563028fb5693c95be13a91ee0a43cdb0a349f (diff) | |
download | mongo-8e1c921240c48475a87ee16d6b6ff9d74c5d149b.tar.gz |
SERVER-50039 Timing error in dbadmin.js test
(cherry picked from commit 5906d967c3144d09fab6a4cc1daddb295df19ffb)
-rw-r--r-- | jstests/core/dbadmin.js | 2 | ||||
-rw-r--r-- | jstests/libs/parallelTester.js | 3 |
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 3b9f0c6809e..ca298f27368 100644 --- a/jstests/libs/parallelTester.js +++ b/jstests/libs/parallelTester.js @@ -207,6 +207,9 @@ if (typeof _threadInject != "undefined") { // Destroys and recreates the catalog, which will interfere with other tests. "restart_catalog.js", + + // Can fail if isMaster takes too long on a loaded machine. + "dbadmin.js", ]); // The following tests cannot run when shell readMode is legacy. |