summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2014-07-31 11:40:56 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2014-07-31 12:52:42 -0400
commit9ec7d68a97dc54f534e95959e62cafcab38bd440 (patch)
tree7d9a36215dd8d9d45aa294c9b3e3805847141084 /src/mongo/shell
parent7e6b8c83f87bfb8306b3ab3fe15dd3fa451fc1e9 (diff)
downloadmongo-9ec7d68a97dc54f534e95959e62cafcab38bd440.tar.gz
SERVER-14755 increase ReplSetTest timeouts to prevent spurious failures while using HybridCoordinator
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/replsettest.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js
index a5964d07e19..9dd636a5213 100644
--- a/src/mongo/shell/replsettest.js
+++ b/src/mongo/shell/replsettest.js
@@ -366,7 +366,7 @@ ReplSetTest.prototype.awaitSecondaryNodes = function( timeout ) {
ReplSetTest.prototype.getMaster = function( timeout ) {
var tries = 0;
var sleepTime = 500;
- var tmo = timeout || 60000;
+ var tmo = timeout || 2 * 60 * 1000; // 2 mins
var master = null;
try {
@@ -438,7 +438,7 @@ ReplSetTest.prototype.initiate = function( cfg , initCmd , timeout ) {
var config = cfg || this.getReplSetConfig();
var cmd = {};
var cmdKey = initCmd || 'replSetInitiate';
- var timeout = timeout || 60000;
+ var timeout = timeout || 2 * 60 * 1000; // 2 mins
cmd[cmdKey] = config;
printjson(cmd);
@@ -462,7 +462,7 @@ 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 || 60000;
+ var timeout = timeout || 2 * 60 * 1000; // 2 mins
config.version = c.version + 1;
this.initiate( config , 'replSetReconfig', timeout );
}
@@ -485,7 +485,7 @@ ReplSetTest.prototype.getLastOpTimeWritten = function() {
};
ReplSetTest.prototype.awaitReplication = function(timeout) {
- timeout = timeout || 30000;
+ timeout = timeout || 60000;
this.getLastOpTimeWritten();