summaryrefslogtreecommitdiff
path: root/jstests/ssl/initial_sync1_x509.js
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-11-25 11:20:43 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-12-08 13:05:00 -0500
commit3ed6635a5fb26c354046d275a1217c4526b2fe02 (patch)
treef40aa20b5e62996843ce3df0f47b82042dd683a7 /jstests/ssl/initial_sync1_x509.js
parent4f24dc58f48cb087db8a4832421d298e9e2633a0 (diff)
downloadmongo-3ed6635a5fb26c354046d275a1217c4526b2fe02.tar.gz
SERVER-21050 Cleanup ReplSetTest
This is just a cleanup work to hide some of the private state of ReplSetTest so it is easier to encapsulate and add new logic. Also enables strict mode.
Diffstat (limited to 'jstests/ssl/initial_sync1_x509.js')
-rw-r--r--jstests/ssl/initial_sync1_x509.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/ssl/initial_sync1_x509.js b/jstests/ssl/initial_sync1_x509.js
index f767dba0dde..9674056eba9 100644
--- a/jstests/ssl/initial_sync1_x509.js
+++ b/jstests/ssl/initial_sync1_x509.js
@@ -16,7 +16,7 @@ function runInitialSyncTest() {
var conns = replTest.startSet();
replTest.initiate();
- var master = replTest.getMaster();
+ var master = replTest.getPrimary();
var foo = master.getDB("foo");
var admin = master.getDB("admin");
@@ -40,7 +40,7 @@ function runInitialSyncTest() {
replTest.awaitReplication();
print("5. Insert some stuff");
- master = replTest.getMaster();
+ master = replTest.getPrimary();
bulk = foo.bar.initializeUnorderedBulkOp();
for (var i = 0; i < 100; i++) {
bulk.insert({ date: new Date(), x: i, str: "all the talk on the market" });