diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-03-17 16:40:26 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-03-17 17:31:11 -0400 |
commit | 298470d138e0596c0f61fff46cbada3bf402a846 (patch) | |
tree | cb52ee96d9bd0379e5ff5c079b84fb45e7ef5070 | |
parent | a173f84cb956fadc1169f32709679260bd517585 (diff) | |
download | mongo-298470d138e0596c0f61fff46cbada3bf402a846.tar.gz |
Increase timeout of replSetReconfig to leave time for initial sync in two_initsync.js test
-rwxr-xr-x | jstests/replsets/two_initsync.js | 2 | ||||
-rw-r--r-- | src/mongo/shell/replsettest.js | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/jstests/replsets/two_initsync.js b/jstests/replsets/two_initsync.js index 7d1442d344f..08e440406cb 100755 --- a/jstests/replsets/two_initsync.js +++ b/jstests/replsets/two_initsync.js @@ -63,7 +63,7 @@ doTest = function (signal) { // Add the second node. // This runs the equivalent of rs.add(newNode); - replTest.reInitiate(); + replTest.reInitiate(60000); var b = second.getDB("admin"); diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js index aa60b390f1b..f54cc8db09b 100644 --- a/src/mongo/shell/replsettest.js +++ b/src/mongo/shell/replsettest.js @@ -458,12 +458,13 @@ ReplSetTest.prototype.initiate = function( cfg , initCmd , timeout ) { } } -ReplSetTest.prototype.reInitiate = function() { +ReplSetTest.prototype.reInitiate = function(timeout) { var master = this.nodes[0]; var c = master.getDB("local")['system.replset'].findOne(); var config = this.getReplSetConfig(); + var timeout = timeout || 30000; config.version = c.version + 1; - this.initiate( config , 'replSetReconfig' ); + this.initiate( config , 'replSetReconfig', timeout ); } ReplSetTest.prototype.getLastOpTimeWritten = function() { |