diff --git a/src/cmap/wire_protocol/constants.ts b/src/cmap/wire_protocol/constants.ts index 4555bc11f6..4d515a5e53 100644 --- a/src/cmap/wire_protocol/constants.ts +++ b/src/cmap/wire_protocol/constants.ts @@ -1,7 +1,7 @@ export const MIN_SUPPORTED_SERVER_VERSION = '3.6'; -export const MAX_SUPPORTED_SERVER_VERSION = '5.1'; +export const MAX_SUPPORTED_SERVER_VERSION = '6.0'; export const MIN_SUPPORTED_WIRE_VERSION = 6; -export const MAX_SUPPORTED_WIRE_VERSION = 14; +export const MAX_SUPPORTED_WIRE_VERSION = 17; export const OP_REPLY = 1; export const OP_UPDATE = 2001; export const OP_INSERT = 2002; diff --git a/test/unit/assorted/wire_version.test.js b/test/unit/assorted/wire_version.test.js index 79abbdcb3b..4d926cec6f 100644 --- a/test/unit/assorted/wire_version.test.js +++ b/test/unit/assorted/wire_version.test.js @@ -7,7 +7,7 @@ const { isHello } = require('../../../src/utils'); const minCompatErrMsg = `minimum wire version ${ Number.MAX_SAFE_INTEGER - 1 -}, but this version of the Node.js Driver requires at most 14`; +}, but this version of the Node.js Driver requires at most 17`; const maxCompatErrMsg = `reports maximum wire version 1, but this version of the Node.js Driver requires at least 6`; describe('Wire Protocol Version', () => { @@ -36,7 +36,7 @@ describe('Wire Protocol Version', () => { await mock.cleanup(); }); - describe('minimum is greater than 14', () => { + describe('minimum is greater than max supported', () => { it('should raise a compatibility error', async function () { setWireProtocolMessageHandler(Number.MAX_SAFE_INTEGER - 1, Number.MAX_SAFE_INTEGER); @@ -54,7 +54,7 @@ describe('Wire Protocol Version', () => { }); }); - describe('maximum is less than 2', () => { + describe('maximum is less than min supported', () => { it('should raise a compatibility error', async function () { setWireProtocolMessageHandler(1, 1); diff --git a/test/unit/cmap/wire_protocol/constants.test.js b/test/unit/cmap/wire_protocol/constants.test.js index 38503c6fc9..5cd5a853f9 100644 --- a/test/unit/cmap/wire_protocol/constants.test.js +++ b/test/unit/cmap/wire_protocol/constants.test.js @@ -14,8 +14,8 @@ describe('Wire Protocol Constants', function () { }); describe('MAX_SUPPORTED_SERVER_VERSION', function () { - it('returns 5.1', function () { - expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('5.1'); + it('returns 6.0', function () { + expect(MAX_SUPPORTED_SERVER_VERSION).to.equal('6.0'); }); }); @@ -26,8 +26,8 @@ describe('Wire Protocol Constants', function () { }); describe('MAX_SUPPORTED_WIRE_VERSION', function () { - it('returns 14', function () { - expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(14); + it('returns 17', function () { + expect(MAX_SUPPORTED_WIRE_VERSION).to.equal(17); }); }); });