From 20cd3a392e15c7b124f634c4c38a4d480f92d1ef Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Thu, 10 Dec 2015 10:21:51 -0500 Subject: SERVER-21050 Introduce ReplSetTest.State enumeration everywhere Makes all JS tests access the replica set member state from the class itself instead of the object instance. Also removes some unused code. --- jstests/replsets/stepdown_killop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/replsets/stepdown_killop.js') diff --git a/jstests/replsets/stepdown_killop.js b/jstests/replsets/stepdown_killop.js index b3b09388808..4b763b7d60a 100644 --- a/jstests/replsets/stepdown_killop.js +++ b/jstests/replsets/stepdown_killop.js @@ -20,7 +20,7 @@ {"_id" : 1, "host" : nodes[1]}, {"_id" : 2, "host" : nodes[2], "arbiterOnly" : true}]}); - replSet.waitForState(replSet.nodes[0], replSet.PRIMARY, 60 * 1000); + replSet.waitForState(replSet.nodes[0], ReplSetTest.State.PRIMARY, 60 * 1000); var secondary = replSet.getSecondary(); jsTestLog('Disable replication on the SECONDARY ' + secondary.host); @@ -31,7 +31,7 @@ 'Failed to configure rsSyncApplyStop failpoint.' ); - replSet.waitForState(replSet.nodes[0], replSet.PRIMARY, 60 * 1000); + replSet.waitForState(replSet.nodes[0], ReplSetTest.State.PRIMARY, 60 * 1000); var primary = replSet.getPrimary(); assert.eq(primary.host, nodes[0], "primary assumed to be node 0"); -- cgit v1.2.1