summaryrefslogtreecommitdiff
path: root/jstests/replsets/initial_sync3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/initial_sync3.js')
-rw-r--r--jstests/replsets/initial_sync3.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/replsets/initial_sync3.js b/jstests/replsets/initial_sync3.js
index 200e0a30213..dc0455dd108 100644
--- a/jstests/replsets/initial_sync3.js
+++ b/jstests/replsets/initial_sync3.js
@@ -7,18 +7,18 @@
load("jstests/replsets/rslib.js");
var name = "initialsync3";
var host = getHostName();
-var port = allocatePorts(7);
print("Start set with three nodes");
var replTest = new ReplSetTest( {name: name, nodes: 3} );
var nodes = replTest.startSet();
replTest.initiate({
- _id : name,
- members : [
- {_id:0, host : host+":"+port[0], priority: 10},
- {_id:1, host : host+":"+port[1], priority: 0},
- {_id:2, host : host+":"+port[2], priority : 0, buildIndexes : false},
- ]});
+ _id: name,
+ members: [
+ {_id: 0, host: host + ":" + nodes[0].port, priority: 10},
+ {_id: 1, host: host + ":" + nodes[1].port, priority: 0},
+ {_id: 2, host: host + ":" + nodes[2].port, priority: 0, buildIndexes: false},
+ ]
+});
var master = replTest.getMaster();