summaryrefslogtreecommitdiff
path: root/jstests/replsets/remove1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/remove1.js')
-rw-r--r--jstests/replsets/remove1.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/remove1.js b/jstests/replsets/remove1.js
index 794b9dd9000..e15b793434b 100644
--- a/jstests/replsets/remove1.js
+++ b/jstests/replsets/remove1.js
@@ -16,7 +16,7 @@ print("Start set with two nodes");
var replTest = new ReplSetTest( {name: name, nodes: 2} );
var nodes = replTest.startSet();
replTest.initiate();
-var master = replTest.getMaster();
+var master = replTest.getPrimary();
var secondary = replTest.getSecondary();
print("Initial sync");
@@ -79,7 +79,7 @@ assert.soon(function() { try {
} catch (e) {
return false;
} });
-master = replTest.getMaster();
+master = replTest.getPrimary();
printjson(master.getDB("admin").runCommand({replSetGetStatus:1}));
var newConfig = master.getDB("local").system.replset.findOne();
print("newConfig: " + tojson(newConfig));