diff options
author | William Schultz <william.schultz@mongodb.com> | 2019-04-01 23:29:09 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2019-04-02 00:30:18 -0400 |
commit | c2b9acad0248ca06b14ef1640734b5d0595b55f1 (patch) | |
tree | 8d5b18a24f5e06665c818fcbbb8b6e0ded792d3e /jstests | |
parent | 757c413e0b46ae5791f0a363d01c813b01d20511 (diff) | |
download | mongo-r3.6.12-rc1.tar.gz |
SERVER-40039 Increase assert.soon timeout in initial_sync_invalid_index_spec.jsr3.6.12-rc1r3.6.12
(cherry picked from commit df7c2a4a8c4a9069d84f62967c896b0220c82f15)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/initial_sync_invalid_index_spec.js | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/jstests/replsets/initial_sync_invalid_index_spec.js b/jstests/replsets/initial_sync_invalid_index_spec.js index f8e974eaee6..d7061795922 100644 --- a/jstests/replsets/initial_sync_invalid_index_spec.js +++ b/jstests/replsets/initial_sync_invalid_index_spec.js @@ -40,14 +40,17 @@ }; assert.soon(assertFn, "Initial sync should have aborted on invalid index specification"); - assert.soon(function() { - try { - initSyncNodeAdminDB.runCommand({ping: 1}); - } catch (e) { - return true; - } - return false; - }, "Node did not terminate due to invalid index spec during initial sync", 60 * 1000); + assert.soon( + function() { + try { + initSyncNodeAdminDB.runCommand({ping: 1}); + } catch (e) { + return true; + } + return false; + }, + "Node did not terminate due to invalid index spec during initial sync", + ReplSetTest.kDefaultTimeoutMS); replTest.stop(initSyncNode, undefined, {allowedExitCode: MongoRunner.EXIT_ABRUPT}); replTest.stopSet(); |