diff options
author | Milena Ivanova <milena.ivanova@mongodb.com> | 2021-09-24 09:30:06 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-22 14:20:51 +0000 |
commit | 2fc19024b2c270e027469bfe499bf74817d7d91b (patch) | |
tree | 72f38c2d22a39eae2717fa684f016ea357dfec1e | |
parent | 4b16de29595cbe840a0fee9ac4c2374e80523483 (diff) | |
download | mongo-2fc19024b2c270e027469bfe499bf74817d7d91b.tar.gz |
SERVER-59879 Adjust maxTimeMS value to allow for slower execution in the parallel test suite
(cherry picked from commit b44f2b07934dc9cd7ca68e774152045126e0167e)
(cherry picked from commit ac1f79eadf6c725a99a959885468dbdbb7c15ce4)
-rw-r--r-- | jstests/core/explain_shell_helpers.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/core/explain_shell_helpers.js b/jstests/core/explain_shell_helpers.js index d877bb6e985..2dda4992d2b 100644 --- a/jstests/core/explain_shell_helpers.js +++ b/jstests/core/explain_shell_helpers.js @@ -159,9 +159,11 @@ explain = t.find().showDiskLoc().explain(); assert.commandWorked(explain); // .maxTimeMS() -explain = t.explain().find().maxTimeMS(200).finish(); +// Provide longer maxTime when the test runs in suites which can affect query execution time. +const numConn = db.serverStatus().connections.current; +explain = t.explain().find().maxTimeMS(200 * numConn).finish(); assert.commandWorked(explain); -explain = t.find().maxTimeMS(200).explain(); +explain = t.find().maxTimeMS(200 * numConn).explain(); assert.commandWorked(explain); // .readPref() |