diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2017-08-25 14:10:24 -0400 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2017-08-25 14:10:24 -0400 |
commit | 74602c75a65c6767bb48c555f5800c16df8d7f48 (patch) | |
tree | 7dc5ec431ce4bbde0c739aa84ff64019dc5c9047 /jstests | |
parent | 987e05d7a7a3a2dee468cc96c0faaa0ea6344ed2 (diff) | |
download | mongo-74602c75a65c6767bb48c555f5800c16df8d7f48.tar.gz |
SERVER-28277 Need to increase timeout in read_committed_with_catalog_changes.js
The slowest builds (ASAN + DEBUG) sometimes fail with current timeout.
(cherry picked from commit c121509fa44611cfb883263cf748ebcdfcf55b49)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/read_committed_with_catalog_changes.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/replsets/read_committed_with_catalog_changes.js b/jstests/replsets/read_committed_with_catalog_changes.js index dae14da31de..888e4ef864c 100644 --- a/jstests/replsets/read_committed_with_catalog_changes.js +++ b/jstests/replsets/read_committed_with_catalog_changes.js @@ -208,15 +208,15 @@ load("jstests/replsets/rslib.js"); // For startSetIfSupportsReadMajority. // they may be passed in to a ScopedThread. function assertReadsBlock(coll) { var res = - coll.runCommand('find', {"readConcern": {"level": "majority"}, "maxTimeMS": 1000}); + coll.runCommand('find', {"readConcern": {"level": "majority"}, "maxTimeMS": 5000}); assert.commandFailedWithCode(res, ErrorCodes.ExceededTimeLimit, "Expected read of " + coll.getFullName() + " to block"); } - function assertReadsSucceed(coll, timeoutMs = 1000) { - var res = coll.runCommand('find', - {"readConcern": {"level": "majority"}, "maxTimeMS": timeoutMs}); + function assertReadsSucceed(coll, timeoutMs = 20000) { + var res = + coll.runCommand('find', {"readConcern": {"level": "majority"}, "maxTimeMS": timeoutMs}); assert.commandWorked(res, 'reading from ' + coll.getFullName()); // Exhaust the cursor to avoid leaking cursors on the server. new DBCommandCursor(coll.getMongo(), res).itcount(); |