summaryrefslogtreecommitdiff
path: root/jstests/replsets/auth2.js
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-12-10 10:21:51 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-12-11 13:21:22 -0500
commit20cd3a392e15c7b124f634c4c38a4d480f92d1ef (patch)
tree90630643e75a25c9fc5b2bae3b73d565d31352f5 /jstests/replsets/auth2.js
parentefbc57c7da94796766ba45d6ff3cf1da576ef99d (diff)
downloadmongo-20cd3a392e15c7b124f634c4c38a4d480f92d1ef.tar.gz
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.
Diffstat (limited to 'jstests/replsets/auth2.js')
-rw-r--r--jstests/replsets/auth2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/replsets/auth2.js b/jstests/replsets/auth2.js
index 62179c1c7af..b7776d94572 100644
--- a/jstests/replsets/auth2.js
+++ b/jstests/replsets/auth2.js
@@ -5,18 +5,18 @@
var testInvalidAuthStates = function() {
print("check that 0 is in recovering");
- rs.waitForState(rs.nodes[0], rs.RECOVERING);
+ rs.waitForState(rs.nodes[0], ReplSetTest.State.RECOVERING);
print("shut down 1, 0 still in recovering.");
rs.stop(1);
sleep(5);
- rs.waitForState(rs.nodes[0], rs.RECOVERING);
+ rs.waitForState(rs.nodes[0], ReplSetTest.State.RECOVERING);
print("shut down 2, 0 becomes a secondary.");
rs.stop(2);
- rs.waitForState(rs.nodes[0], rs.SECONDARY);
+ rs.waitForState(rs.nodes[0], ReplSetTest.State.SECONDARY);
rs.restart(1, {"keyFile" : key1});
rs.restart(2, {"keyFile" : key1});