diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-09-14 15:06:50 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2018-09-20 18:06:22 -0400 |
commit | ab83405492159ecd8c972fc8b9f22314c3cb05cc (patch) | |
tree | 7a61920e57f7311fdeafefe86f592c83da8f31a7 /jstests | |
parent | 693520e52214c72a12efd132d2274d4d32bc2f21 (diff) | |
download | mongo-ab83405492159ecd8c972fc8b9f22314c3cb05cc.tar.gz |
SERVER-37147 sessions_collection_auto_healing.js should use 2 node replica set
(cherry picked from commit 8f4ef548bbe6b6e6cf6a975d649477e28bbc9808)
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/replsets/sessions_collection_auto_healing.js | 7 |
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. |