diff --git a/docs/guides/supported-systems.md b/docs/guides/supported-systems.md
index e26bf2b5..16588622 100644
--- a/docs/guides/supported-systems.md
+++ b/docs/guides/supported-systems.md
@@ -127,7 +127,7 @@ Default version is `6`
(uses mongodb's `ubuntu` release)
Lowest supported Distribution version is `17`
Highest version is `21`
-Default version is `20`
+Default version is `21`
### Suse
diff --git a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts b/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts
index c1599abf..fa11900d 100644
--- a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts
+++ b/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts
@@ -487,8 +487,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
os: 'linux',
dist: 'ubuntu',
release:
- // TODO: next-minor: change default mint release to 21
- mintToUbuntuRelease[parseInt(os.release.split('.')[0])] || mintToUbuntuRelease[20],
+ mintToUbuntuRelease[parseInt(os.release.split('.')[0])] || mintToUbuntuRelease[21],
};
}
diff --git a/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts b/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts
index 1f19ea26..0ea75ed4 100644
--- a/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts
+++ b/packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownloadUrl.test.ts
@@ -985,11 +985,11 @@ describe('MongoBinaryDownloadUrl', () => {
});
});
- it('should default to Mint Version 20, if version cannot be found in lookup table', async () => {
+ it('should default to Mint Version 21, if version cannot be found in lookup table', async () => {
(downloadUrl.os as LinuxOS).release = '16'; // out-of-range version
downloadUrl.version = '6.0.4';
expect(await downloadUrl.getDownloadUrl()).toBe(
- 'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2004-6.0.4.tgz'
+ 'https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-6.0.4.tgz'
);
});