Skip to content

Commit 542f13f

Browse files
benglMylesBorins
authored andcommitted
test: fix flaky test-crypto-classes.js
On non-FIPS, we can instantiate DiffieHellman with 256 instead of 1024. This should be quite a bit faster, and therefore prevent the timeouts. Backport-PR-URL: #16245 PR-URL: #15662 Fixes: #15655 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 809858c commit 542f13f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-crypto-classes.js

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const TEST_CASES = {
2525
if (!common.hasFipsCrypto) {
2626
TEST_CASES.Cipher = ['aes192', 'secret'];
2727
TEST_CASES.Decipher = ['aes192', 'secret'];
28+
TEST_CASES.DiffieHellman = [256];
2829
}
2930

3031
function entries(obj) {

0 commit comments

Comments
 (0)