summaryrefslogtreecommitdiff
path: root/jstests/replsets/sync2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/sync2.js')
-rw-r--r--jstests/replsets/sync2.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/sync2.js b/jstests/replsets/sync2.js
index 878600c9a94..d847127cae3 100644
--- a/jstests/replsets/sync2.js
+++ b/jstests/replsets/sync2.js
@@ -10,7 +10,7 @@ replTest.initiate({"_id": "sync2",
{"_id": 4, host: nodes[4]}]
});
-var master = replTest.getMaster();
+var master = replTest.getPrimary();
jsTestLog("Replica set test initialized");
// initial sync
@@ -27,7 +27,7 @@ conns[4].disconnect(conns[1]);
conns[4].disconnect(conns[3]);
assert.soon(function() {
- master = replTest.getMaster();
+ master = replTest.getPrimary();
return master === conns[0];
}, 60 * 1000, "node 0 did not become primary quickly enough");