summaryrefslogtreecommitdiff
path: root/jstests/replsets/tags.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/tags.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/tags.js')
-rw-r--r--jstests/replsets/tags.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/tags.js b/jstests/replsets/tags.js
index 47edb4fce11..87bc0075109 100644
--- a/jstests/replsets/tags.js
+++ b/jstests/replsets/tags.js
@@ -97,7 +97,7 @@
var ensurePrimary = function(nodeId, expectedWritableNodes) {
jsTestLog('Node ' + nodeId + ' (' + replTest.nodes[nodeId].host + ') should be primary.');
- replTest.waitForState(replTest.nodes[nodeId], replTest.PRIMARY, 60 * 1000);
+ replTest.waitForState(replTest.nodes[nodeId], ReplSetTest.State.PRIMARY, 60 * 1000);
primary = replTest.getPrimary();
var writeConcern = {writeConcern: {w: expectedWritableNodes, wtimeout: 30 * 1000}};
assert.writeOK(primary.getDB('foo').bar.insert({x: 100}, writeConcern));