summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2016-03-24 14:11:52 -0400
committerBenety Goh <benety@mongodb.com>2016-03-24 14:11:52 -0400
commit452e759c5e4869998378a0a22871cee7af750042 (patch)
tree3fd6ef732b96f303bb482ebd37cd9cb99624eced
parentbec0b594ddde4d727b7598d46aebcefc4133bac5 (diff)
downloadmongo-452e759c5e4869998378a0a22871cee7af750042.tar.gz
Revert "SERVER-21975 wait for secondary to become secondary before starting tests in replsets/test_command.js"
This reverts commit bec0b594ddde4d727b7598d46aebcefc4133bac5.
-rw-r--r--jstests/replsets/test_command.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/jstests/replsets/test_command.js b/jstests/replsets/test_command.js
index abaf10bc56d..37db262bd81 100644
--- a/jstests/replsets/test_command.js
+++ b/jstests/replsets/test_command.js
@@ -26,24 +26,6 @@
}),
'node 0' + replSet.nodes[0].host + ' failed to become primary');
- // We need the try/catch to handle that the node may have hung up the connection due
- // to a state change.
- try {
- assert.commandWorked(replSet.nodes[1].adminCommand({
- replSetTest: 1,
- waitForMemberState: ReplSetTest.State.SECONDARY,
- timeoutMillis: 60 * 1000,
- }));
- } catch (e) {
- jsTestLog(e);
- assert.commandWorked(replSet.nodes[1].adminCommand({
- replSetTest: 1,
- waitForMemberState: ReplSetTest.State.SECONDARY,
- timeoutMillis: 60 * 1000,
- }),
- 'node 1' + replSet.nodes[1].host + ' failed to become secondary');
- }
-
var primary = replSet.getPrimary();
var secondary = replSet.getSecondary();