diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2018-12-14 12:25:36 -0500 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2018-12-14 15:27:00 -0500 |
commit | 333b35057d35230ad5bc868bd0eaa7423d9aceb4 (patch) | |
tree | ed2ff02dd25edbab089216f3723922e0960d2daa /jstests/noPassthrough/libs | |
parent | 0991709cf60677b183cc0362e432c095d9ed185f (diff) | |
download | mongo-333b35057d35230ad5bc868bd0eaa7423d9aceb4.tar.gz |
longer timeout
Diffstat (limited to 'jstests/noPassthrough/libs')
-rw-r--r-- | jstests/noPassthrough/libs/backup_restore.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/jstests/noPassthrough/libs/backup_restore.js b/jstests/noPassthrough/libs/backup_restore.js index 1b5100f7e57..33308950e1e 100644 --- a/jstests/noPassthrough/libs/backup_restore.js +++ b/jstests/noPassthrough/libs/backup_restore.js @@ -175,11 +175,15 @@ var BackupRestoreTest = function(options) { }, oplogSize: 1024 }); + + // Avoid stepdowns due to heavy workloads on slow machines. + var config = rst.getReplSetConfig(); + config.settings = {electionTimeoutMillis: 60000}; var nodes = rst.startSet(); + rst.initiate(config); // Initialize replica set using default timeout. This should give us sufficient time to // allocate 1GB oplogs on slow test hosts. - rst.initiate(); rst.awaitNodesAgreeOnPrimary(); var primary = rst.getPrimary(); var secondary = rst.getSecondary(); |