Skip to content

Commit 8a989a3

Browse files
committed
test: update out-of-date binary versions
that dont match the globalSetup values and actually start a binary
1 parent c089f17 commit 8a989a3

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ describe('MongoMemoryReplSet', () => {
724724
describe('server version specific', () => {
725725
// should use default options that are supported for 7.0 (like not using "ephemeralForTest" by default)
726726
it('should allow mongodb by default 7.0', async () => {
727-
const server = await MongoMemoryReplSet.create({ binary: { version: '7.0.7' } });
727+
const server = await MongoMemoryReplSet.create({ binary: { version: '7.0.11' } });
728728

729729
await server.stop();
730730
});
@@ -746,7 +746,7 @@ describe('MongoMemoryReplSet', () => {
746746
it('should not warn if no explicit storage engine is set in 7.0', async () => {
747747
jest.spyOn(console, 'warn');
748748
const server = await MongoMemoryReplSet.create({
749-
binary: { version: '7.0.7' },
749+
binary: { version: '7.0.11' },
750750
// replSet: { storageEngine: 'ephemeralForTest' },
751751
});
752752

@@ -760,7 +760,7 @@ describe('MongoMemoryReplSet', () => {
760760
it('should warn if "ephemeralForTest" is used explicitly in mongodb 7.0', async () => {
761761
const spy = jest.spyOn(console, 'warn').mockImplementationOnce(() => {});
762762
const server = await MongoMemoryReplSet.create({
763-
binary: { version: '7.0.7' },
763+
binary: { version: '7.0.11' },
764764
replSet: { storageEngine: 'ephemeralForTest' },
765765
});
766766

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ describe('MongoMemoryServer', () => {
12441244
describe('server version specific', () => {
12451245
// should use default options that are supported for 7.0 (like not using "ephemeralForTest" by default)
12461246
it('should allow mongodb by default 7.0', async () => {
1247-
const server = await MongoMemoryServer.create({ binary: { version: '7.0.7' } });
1247+
const server = await MongoMemoryServer.create({ binary: { version: '7.0.11' } });
12481248

12491249
await server.stop();
12501250
});
@@ -1266,7 +1266,7 @@ describe('MongoMemoryServer', () => {
12661266
it('should not warn if no explicit storage engine is set in 7.0', async () => {
12671267
jest.spyOn(console, 'warn');
12681268
const server = await MongoMemoryServer.create({
1269-
binary: { version: '7.0.7' },
1269+
binary: { version: '7.0.11' },
12701270
// instance: { storageEngine: 'ephemeralForTest' },
12711271
});
12721272

@@ -1280,7 +1280,7 @@ describe('MongoMemoryServer', () => {
12801280
it('should warn if "ephemeralForTest" is used explicitly in mongodb 7.0', async () => {
12811281
const spy = jest.spyOn(console, 'warn').mockImplementationOnce(() => {});
12821282
const server = await MongoMemoryServer.create({
1283-
binary: { version: '7.0.7' },
1283+
binary: { version: '7.0.11' },
12841284
instance: { storageEngine: 'ephemeralForTest' },
12851285
});
12861286

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ describe('MongodbInstance', () => {
264264
const mongod = await MongodbInstance.create({
265265
// this works without problems, because no explicit storage-engine is given, so mongodb automatically chooses wiredTiger
266266
instance: { port: gotPort, dbPath: tmpDir },
267-
binary: { version: '7.0.0' },
267+
binary: { version: '7.0.11' },
268268
});
269269
expect(mongod.mongodProcess!.pid).toBeGreaterThan(0);
270270
await mongod.stop();

0 commit comments

Comments
 (0)