Skip to content

Commit 24175e3

Browse files
committed
fixup! fixup! chore(ci): run tests against enterprise server versions
1 parent f50262f commit 24175e3

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

testing/download-mongodb.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,16 @@ async function lookupDownloadUrl(versionInfo: VersionInfo, enterprise: boolean):
7979
downloadInfo = versionInfo.downloads
8080
.find((downloadInfo: DownloadInfo) =>
8181
downloadInfo.target === 'windows' &&
82-
downloadInfo.edition === (enterprise ? 'enterprise' : 'base')) as DownloadInfo;
82+
downloadInfo.edition === (enterprise ? 'enterprise' : 'base') &&
83+
downloadInfo.arch === 'x86_64') as DownloadInfo;
8384
} else {
8485
let distro = distroId.match(knownDistroRegex)!.groups!.name;
8586
if (distro.match(/rhel7[0-9]/)) distro = 'rhel70';
8687
downloadInfo = versionInfo.downloads
8788
.find((downloadInfo: DownloadInfo) =>
8889
downloadInfo.target === distro &&
89-
downloadInfo.edition === (enterprise ? 'targeted' : 'enterprise')) as DownloadInfo;
90+
downloadInfo.edition === (enterprise ? 'targeted' : 'enterprise') &&
91+
downloadInfo.arch === 'x86_64') as DownloadInfo;
9092
}
9193
return downloadInfo.archive.url;
9294
}

0 commit comments

Comments
 (0)