Skip to content

Commit 0d3e8e9

Browse files
committed
use new downloadMongoDb function signature
1 parent 8087a89 commit 0d3e8e9

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

scripts/setup-encryption-tests.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ async function main() {
1414
await writeFile('fle-cluster-config.json', JSON.stringify(configuration, null, 2));
1515

1616
async function downloadCryptShared() {
17-
const crypt_shared_dir = await downloadMongoDb(join(runnerDir, 'crypt'), serverVersion, {
18-
enterprise: true,
19-
crypt_shared: true
17+
const crypt_shared_dir = await downloadMongoDb({
18+
directory: join(runnerDir, 'crypt'),
19+
version: serverVersion,
20+
downloadOptions: {
21+
enterprise: true,
22+
crypt_shared: true
23+
}
2024
});
2125

2226
for (const dirEntry of await readdir(crypt_shared_dir)) {
@@ -30,8 +34,12 @@ async function main() {
3034
await rm(runnerDir, { recursive: true }).catch(() => {});
3135

3236
const cryptShared = await downloadCryptShared();
33-
const binDir = await downloadMongoDb(runnerDir, serverVersion, {
34-
enterprise: true
37+
const binDir = await downloadMongoDb({
38+
directory: runnerDir,
39+
version: serverVersion,
40+
downloadOptions: {
41+
enterprise: true
42+
}
3543
});
3644

3745
await start({ id: 'encryption-test-cluster', binDir, topology:

0 commit comments

Comments
 (0)