Skip to content

Commit ffa95cd

Browse files
authored
fix: revert add debian v10 downloads
This reverts commit 012d652.
1 parent e9c6ce5 commit ffa95cd

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ export default class MongoBinaryDownloadUrl {
129129
getDebianVersionString(os: getos.Os): string {
130130
let name = 'debian';
131131
const release: number = parseFloat((os as getos.LinuxOs).release);
132-
if (release >= 10 || (os as getos.LinuxOs).release === 'unstable') {
133-
name += '10';
134-
} else if (release >= 9) {
132+
if (release >= 9 || (os as getos.LinuxOs).release === 'unstable') {
135133
name += '92';
136134
} else if (release >= 8.1) {
137135
name += '81';

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,6 @@ describe('MongoBinaryDownloadUrl', () => {
232232
})
233233
).toBe('debian92');
234234
});
235-
236-
it('should return a archive name for debian 10.0', () => {
237-
expect(
238-
downloadUrl.getDebianVersionString({
239-
os: 'linux',
240-
dist: 'debian',
241-
release: '10.0',
242-
})
243-
).toBe('debian10');
244-
});
245235
});
246236

247237
describe('getMintVersionString', () => {

0 commit comments

Comments
 (0)