Skip to content

Commit 9062e5c

Browse files
committed
chore: remove cryptoCallbacks flag
1 parent 903fe98 commit 9062e5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/benchmarks/bench.mjs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ const ERROR = 0;
1515

1616
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
1717

18-
const { CRYPT_SHARED_LIB_PATH: cryptSharedLibPath = '', BENCH_WITHOUT_NATIVE_CRYPTO = '' } =
19-
process.env;
18+
const { CRYPT_SHARED_LIB_PATH: cryptSharedLibPath = '' } = process.env;
2019

2120
const warmupSecs = 2;
2221
const testInSecs = 57;
@@ -121,8 +120,7 @@ function main() {
121120
`testInSecs=${testInSecs}`
122121
);
123122

124-
const mongoCryptOptions = { kmsProviders: BSON.serialize(kmsProviders) };
125-
if (BENCH_WITHOUT_NATIVE_CRYPTO) mongoCryptOptions.cryptoCallbacks = cryptoCallbacks;
123+
const mongoCryptOptions = { kmsProviders: BSON.serialize(kmsProviders), cryptoCallbacks };
126124
if (cryptSharedLibPath) mongoCryptOptions.cryptSharedLibPath = cryptSharedLibPath;
127125

128126
const mongoCrypt = new MongoCrypt(mongoCryptOptions);

0 commit comments

Comments
 (0)