Skip to content

Commit

Permalink
test(mock-server): provide default ismaster for 3.6+
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Nov 20, 2017
1 parent 5f499a4 commit 052dc02
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/mock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ const DEFAULT_ISMASTER = {
ok: 1
};

const DEFAULT_ISMASTER_36 = Object.assign(
{},
{
maxWireVersion: 5,
logicalSessionTimeoutMinutes: 10
},
DEFAULT_ISMASTER
);

/*
* Main module
*/
Expand All @@ -67,5 +76,6 @@ module.exports = {
},

cleanup: cleanup,
DEFAULT_ISMASTER: DEFAULT_ISMASTER
DEFAULT_ISMASTER: DEFAULT_ISMASTER,
DEFAULT_ISMASTER_36: DEFAULT_ISMASTER_36
};

0 comments on commit 052dc02

Please sign in to comment.