Permalink
Browse files

Increase timeouts for RS tests on slow machines

  • Loading branch information...
banker committed Jul 30, 2010
1 parent 44e6792 commit 96ab07a306bd871915d56e77f5f7c5d96d223c8a
Showing with 5 additions and 5 deletions.
  1. +3 −3 jstests/replsets/replset_remove_node.js
  2. +2 −2 shell/servers.js
@@ -40,18 +40,18 @@ doTest = function( signal ) {
stat = master.getDB("admin").runCommand({replSetGetStatus: 1});
printjson( stat );
return stat.myState == 1;
- }, "Master failed to come up as master.");
+ }, "Master failed to come up as master.", 60000);
// Slaves to be set to 2 (secondary)
assert.soon(function() {
stat = slaves[0].getDB("admin").runCommand({replSetGetStatus: 1});
return stat.myState == 2;
- }, "Slave failed to come up as slave.");
+ }, "Slave failed to come up as slave.", 60000);
assert.soon(function() {
stat = slaves[0].getDB("admin").runCommand({replSetGetStatus: 1});
return stat.members.length == 2;
- }, "Wrong number of members");
+ }, "Wrong number of members", 60000);
}
doTest( 15 );
View
@@ -1112,11 +1112,11 @@ ReplSetTest.prototype.initiate = function( cfg , initCmd , timeout ) {
var config = cfg || this.getReplSetConfig();
var cmd = {};
var cmdKey = initCmd || 'replSetInitiate';
- var timeout = timeout || 10000;
+ var timeout = timeout || 30000;
cmd[cmdKey] = config;
printjson(cmd);
- this.attempt({timeout: timeout, desc: "Initiate replica pair"}, function() {
+ this.attempt({timeout: timeout, desc: "Initiate replica set"}, function() {
var result = master.runCommand(cmd);
printjson(result);
return result['ok'] == 1;

0 comments on commit 96ab07a

Please sign in to comment.