summaryrefslogtreecommitdiff
path: root/jstests/gle
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/gle')
-rw-r--r--jstests/gle/create_index_gle.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/jstests/gle/create_index_gle.js b/jstests/gle/create_index_gle.js
index 6fb82defc4d..9b2a0185a9b 100644
--- a/jstests/gle/create_index_gle.js
+++ b/jstests/gle/create_index_gle.js
@@ -1,15 +1,23 @@
load('jstests/replsets/rslib.js');
-var st = new ShardingTest({ shards: { rs0: { nodes: 2, oplogSize: 10, verbose: 1 }}});
+(function () {
+"use strict";
+
+var st = new ShardingTest({
+ shards: {
+ rs0: {
+ nodes: { n0: {}, n1: { rsConfig: { priority: 0 } } },
+ oplogSize: 10,
+ verbose: 1,
+ }
+ },
+});
var replTest = st.rs0;
var config = replTest.getReplSetConfig();
-config.members[1].priority = 0;
// Add a delay long enough so getLastError would actually 'wait' for write concern.
config.members[1].slaveDelay = 3;
config.version = 2;
-var priConn = replTest.getPrimary();
-
reconfig(replTest, config, true);
assert.soon(function() {
@@ -38,3 +46,4 @@ assert.eq(priIdx.length, secIdx.length, 'pri: ' + tojson(priIdx) + ', sec: ' + t
st.stop();
+}());