summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-03-10 11:51:36 -0500
committerBenety Goh <benety@mongodb.com>2017-04-04 15:31:17 -0400
commitc46322c4f40c923a9102aa3688433ac1acec861c (patch)
tree733bc5a642e4415323c17b32c0bad61c500b9f32
parent74cebe59bfbac098d898add311ddbaa9829de8d3 (diff)
downloadmongo-c46322c4f40c923a9102aa3688433ac1acec861c.tar.gz
SERVER-28272 extend timeout in step_down_during_draining.js when waiting for new primary
(cherry picked from commit 6a123c6c5f06a7a7ef351502078f9d5fc91aca0e)
-rw-r--r--jstests/replsets/step_down_during_draining.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/step_down_during_draining.js b/jstests/replsets/step_down_during_draining.js
index 90c49be21c4..c4592bf2146 100644
--- a/jstests/replsets/step_down_during_draining.js
+++ b/jstests/replsets/step_down_during_draining.js
@@ -86,7 +86,7 @@ load("jstests/replsets/rslib.js");
reconnect(secondary);
stepUp(secondary);
- replSet.waitForState(secondary, ReplSetTest.State.PRIMARY, 1000);
+ replSet.waitForState(secondary, ReplSetTest.State.PRIMARY);
replSet.awaitNodesAgreeOnPrimary();
// Secondary doesn't allow writes yet.
@@ -104,12 +104,12 @@ load("jstests/replsets/rslib.js");
// Original primary steps up.
reconnect(primary);
stepUp(primary);
- replSet.waitForState(primary, ReplSetTest.State.PRIMARY, 1000);
+ replSet.waitForState(primary, ReplSetTest.State.PRIMARY);
replSet.awaitNodesAgreeOnPrimary();
reconnect(secondary);
stepUp(secondary);
- replSet.waitForState(secondary, ReplSetTest.State.PRIMARY, 1000);
+ replSet.waitForState(secondary, ReplSetTest.State.PRIMARY);
replSet.awaitNodesAgreeOnPrimary();
// Disable fail point to allow replication.