Skip to content

Commit

Permalink
SERVER-13840 extend getMaster() timeout in stepdown2.js to cope with …
Browse files Browse the repository at this point in the history
…election timeout
  • Loading branch information
matt dannenberg committed May 6, 2014
1 parent 0779e3a commit df2324e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jstests/replsets/stepdown2.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,11 @@ catch (e) {
}

print("\nget new master (31001)");
replTest.getMaster();

assert.soon(function() {
var secondMaster = replTest.getMaster();
var secondMaster = replTest.getMaster(2 * 60 * 1000);
return firstMaster+"" != secondMaster+"";
}, 'making sure '+firstMaster+' isn\'t still master', 60000);
}, 'making sure '+firstMaster+' isn\'t still master', 2 * 60 * 1000);


print("\ncheck shutdown command on 31000");
Expand Down

0 comments on commit df2324e

Please sign in to comment.