summaryrefslogtreecommitdiff
path: root/jstests/replsets/catchup_takeover_one_high_priority.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/catchup_takeover_one_high_priority.js')
-rw-r--r--jstests/replsets/catchup_takeover_one_high_priority.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/catchup_takeover_one_high_priority.js b/jstests/replsets/catchup_takeover_one_high_priority.js
index 738312d1f58..2a1b0d249e2 100644
--- a/jstests/replsets/catchup_takeover_one_high_priority.js
+++ b/jstests/replsets/catchup_takeover_one_high_priority.js
@@ -37,7 +37,7 @@ replSet.waitForState(2, ReplSetTest.State.PRIMARY, replSet.kDefaultTimeoutMS);
jsTestLog('node 2 is now primary');
replSet.awaitReplication();
-waitForConfigReplication(nodes[2]);
+replSet.waitForConfigReplication(nodes[2]);
// Stop replication and disconnect node 2 so that it cannot do a priority takeover.
stopServerReplication(nodes[2]);
@@ -71,7 +71,7 @@ nodes[2].reconnect(nodes[0]);
nodes[2].reconnect(nodes[1]);
// Wait until nodes have learned the latest config.
-waitForConfigReplication(nodes[1], [nodes[1], nodes[2]]);
+replSet.waitForConfigReplication(nodes[1], [nodes[1], nodes[2]]);
// Step up a lagged node.
assert.commandWorked(nodes[1].adminCommand({replSetStepUp: 1}));