Skip to content

Commit 4fbd110

Browse files
committed
test(MongoInstance): upgrade mongodb binary versions to test
1 parent aec0a10 commit 4fbd110

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/mongodb-memory-server-core/src/__tests__/testUtils/globalSetup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { assertion, isNullOrUndefined } from '../../util/utils';
55
export = async function globalSetup(): Promise<void> {
66
const defaultVersion = resolveConfig(ResolveConfigVariables.VERSION);
77
assertion(!isNullOrUndefined(defaultVersion), new Error('Default version is not defined'));
8-
const versions = [defaultVersion, '4.0.25', '4.2.14', '4.4.6', '5.0.3'];
8+
const versions = [defaultVersion, '4.0.25', '4.2.17', '4.4.10', '5.0.3'];
99
// Ensure all required versions are downloaded for tests
1010
for (const version of versions) {
1111
await MongoBinary.getPath({ version });

packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ describe('MongodbInstance', () => {
218218
const gotPort = await getPort({ port: 27445 });
219219
const mongod = await MongodbInstance.create({
220220
instance: { port: gotPort, dbPath: tmpDir.name },
221-
binary: { version: '4.2.14' },
221+
binary: { version: '4.2.17' },
222222
});
223223
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
224224
await mongod.stop();
@@ -228,7 +228,7 @@ describe('MongodbInstance', () => {
228228
const gotPort = await getPort({ port: 27445 });
229229
const mongod = await MongodbInstance.create({
230230
instance: { port: gotPort, dbPath: tmpDir.name },
231-
binary: { version: '4.4.6' },
231+
binary: { version: '4.4.10' },
232232
});
233233
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
234234
await mongod.stop();

0 commit comments

Comments
 (0)