diff options
author | Geert Bosch <geert@mongodb.com> | 2016-10-24 11:38:12 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2016-10-24 15:12:53 -0400 |
commit | 437d89220479c5d16d58bb6fffd1cd35a58f9e77 (patch) | |
tree | b49af0fd5211e9c916eef9813e47611acee4ee71 | |
parent | 35f394330e4ddd0e19db9e2d9ee096d41a6dcd56 (diff) | |
download | mongo-437d89220479c5d16d58bb6fffd1cd35a58f9e77.tar.gz |
SERVER-26439 Don't time out too quickly in wt_nojournal_skip_recovery.js
-rw-r--r-- | jstests/noPassthrough/wt_nojournal_skip_recovery.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/jstests/noPassthrough/wt_nojournal_skip_recovery.js b/jstests/noPassthrough/wt_nojournal_skip_recovery.js index fa0d32b93c4..5ee9f1e2cc2 100644 --- a/jstests/noPassthrough/wt_nojournal_skip_recovery.js +++ b/jstests/noPassthrough/wt_nojournal_skip_recovery.js @@ -47,14 +47,17 @@ // After some journaled write operations have been performed against the mongod, send a SIGKILL // to the process to trigger an unclean shutdown. - assert.soon(function() { - var count = conn.getDB('test').nojournal.count({journaled: {$exists: true}}); - if (count >= 100) { - MongoRunner.stopMongod(conn, 9); - return true; - } - return false; - }, 'the parallel shell did not perform at least 100 journaled inserts'); + assert.soon( + function() { + var count = conn.getDB('test').nojournal.count({journaled: {$exists: true}}); + if (count >= 100) { + MongoRunner.stopMongod(conn, 9); + return true; + } + return false; + }, + 'the parallel shell did not perform at least 100 journaled inserts', + 5 * 60 * 1000 /*timeout ms*/); var exitCode = awaitShell({checkExitSuccess: false}); assert.neq(0, exitCode, 'expected shell to exit abnormally due to mongod being terminated'); |