Skip to content

Commit 38ba361

Browse files
committed
test: update mongodb versions tested
1 parent 868e534 commit 38ba361

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ describe('single server replset', () => {
241241
replSet: { auth: { enable: true }, count: 3, storageEngine: 'ephemeralForTest' },
242242
binary: {
243243
// 7.0 removed "ephemeralForTest", this test is explicitly for that engine
244-
version: '6.0.14',
244+
version: '6.0.25',
245245
},
246246
});
247247

@@ -732,7 +732,7 @@ describe('MongoMemoryReplSet', () => {
732732
it('should not warn if "ephemeralForTest" is used explicitly in mongodb 6.0', async () => {
733733
jest.spyOn(console, 'warn');
734734
const server = await MongoMemoryReplSet.create({
735-
binary: { version: '6.0.14' },
735+
binary: { version: '6.0.25' },
736736
replSet: { storageEngine: 'ephemeralForTest' },
737737
});
738738

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe('MongoMemoryServer', () => {
7979
},
8080
binary: {
8181
// 7.0 removed "ephemeralForTest", this test is explicitly for that engine
82-
version: '6.0.14',
82+
version: '6.0.25',
8383
},
8484
});
8585

@@ -265,7 +265,7 @@ describe('MongoMemoryServer', () => {
265265
},
266266
binary: {
267267
// 7.0 removed "ephemeralForTest", this test is explicitly for that engine
268-
version: '6.0.14',
268+
version: '6.0.25',
269269
},
270270
});
271271

@@ -1252,7 +1252,7 @@ describe('MongoMemoryServer', () => {
12521252
it('should not warn if "ephemeralForTest" is used explicitly in mongodb 6.0', async () => {
12531253
jest.spyOn(console, 'warn');
12541254
const server = await MongoMemoryServer.create({
1255-
binary: { version: '6.0.14' },
1255+
binary: { version: '6.0.25' },
12561256
instance: { storageEngine: 'ephemeralForTest' },
12571257
});
12581258

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export = async function globalSetup(): Promise<void> {
1010
'4.0.28',
1111
'4.2.25',
1212
'4.4.29',
13-
'5.0.19',
14-
'6.0.14',
13+
'5.0.31',
14+
'6.0.25',
1515
'7.0.24',
16-
'8.0.1',
16+
'8.0.14',
1717
];
1818
// Ensure all required versions are downloaded for tests
1919
for (const version of versions) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ describe('MongodbInstance', () => {
243243
const gotPort = await getFreePort(27445);
244244
const mongod = await MongodbInstance.create({
245245
instance: { port: gotPort, dbPath: tmpDir },
246-
binary: { version: '5.0.19' },
246+
binary: { version: '5.0.31' },
247247
});
248248
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
249249
await mongod.stop();
@@ -253,7 +253,7 @@ describe('MongodbInstance', () => {
253253
const gotPort = await getFreePort(27445);
254254
const mongod = await MongodbInstance.create({
255255
instance: { port: gotPort, dbPath: tmpDir },
256-
binary: { version: '6.0.14' },
256+
binary: { version: '6.0.25' },
257257
});
258258
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
259259
await mongod.stop();
@@ -275,7 +275,7 @@ describe('MongodbInstance', () => {
275275
const mongod = await MongodbInstance.create({
276276
// this works without problems, because no explicit storage-engine is given, so mongodb automatically chooses wiredTiger
277277
instance: { port: gotPort, dbPath: tmpDir },
278-
binary: { version: '8.0.1' },
278+
binary: { version: '8.0.14' },
279279
});
280280
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
281281
await mongod.stop();

0 commit comments

Comments
 (0)