summaryrefslogtreecommitdiff
path: root/jstests/replsets/rollback.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/rollback.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/rollback.js')
-rw-r--r--jstests/replsets/rollback.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/rollback.js b/jstests/replsets/rollback.js
index e66357b1fc5..a7ae6c133ed 100644
--- a/jstests/replsets/rollback.js
+++ b/jstests/replsets/rollback.js
@@ -44,7 +44,7 @@ load("jstests/replsets/rslib.js");
});
// Make sure we have a master
- replTest.waitForState(replTest.nodes[0], replTest.PRIMARY, 60 * 1000);
+ replTest.waitForState(replTest.nodes[0], ReplSetTest.State.PRIMARY, 60 * 1000);
var master = replTest.getPrimary();
var a_conn = conns[0];
var A = a_conn.getDB("admin");