summaryrefslogtreecommitdiff
path: root/jstests/replsets/sessions_collection_auto_healing.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/sessions_collection_auto_healing.js')
-rw-r--r--jstests/replsets/sessions_collection_auto_healing.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/replsets/sessions_collection_auto_healing.js b/jstests/replsets/sessions_collection_auto_healing.js
index 7b6410072dd..c56fb24639a 100644
--- a/jstests/replsets/sessions_collection_auto_healing.js
+++ b/jstests/replsets/sessions_collection_auto_healing.js
@@ -7,7 +7,10 @@ load('jstests/libs/sessions_collection.js');
// implicit sessions.
TestData.disableImplicitSessions = true;
- var replTest = new ReplSetTest({name: 'refresh', nodes: 3});
+ var replTest = new ReplSetTest({
+ name: 'refresh',
+ nodes: [{rsConfig: {votes: 1, priority: 1}}, {rsConfig: {votes: 0, priority: 0}}]
+ });
var nodes = replTest.startSet();
replTest.initiate();
@@ -15,7 +18,7 @@ load('jstests/libs/sessions_collection.js');
var primaryAdmin = primary.getDB("admin");
replTest.awaitSecondaryNodes();
- var secondary = replTest._slaves[0];
+ var secondary = replTest.getSecondary();
var secondaryAdmin = secondary.getDB("admin");
// Test that we can use sessions on the primary before the sessions collection exists.