Skip to content

Commit c7669db

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 <refack@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 295fd1a commit c7669db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-crypto-classes.js

Lines changed: 1 addition & 0 deletions
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)