summaryrefslogtreecommitdiff
path: root/jstests/replsets/ismaster1.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/replsets/ismaster1.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/replsets/ismaster1.js')
-rw-r--r--jstests/replsets/ismaster1.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/ismaster1.js b/jstests/replsets/ismaster1.js
index 76252a069cb..1904145c882 100644
--- a/jstests/replsets/ismaster1.js
+++ b/jstests/replsets/ismaster1.js
@@ -116,7 +116,7 @@ var agreeOnPrimaryAndSetVersion = function( setVersion ) {
return true;
}
-var master = replTest.getMaster();
+var master = replTest.getPrimary();
assert.soon( function() { return agreeOnPrimaryAndSetVersion( 1 ); },
"Nodes did not initiate in less than a minute", 60000 );
@@ -199,7 +199,7 @@ catch(e) {
print(e);
}
-master = replTest.getMaster();
+master = replTest.getPrimary();
assert.soon( function() { return agreeOnPrimaryAndSetVersion( 2 ); },
"Nodes did not sync in less than a minute", 60000 );