Skip to content

Commit

Permalink
test: fix flaky test-crypto-classes.js
Browse files Browse the repository at this point in the history
On non-FIPS, we can instantiate DiffieHellman with 256 instead of 1024.
This should be quite a bit faster, and therefore prevent the timeouts.

Fixes: nodejs#15655
  • Loading branch information
bengl committed Sep 28, 2017
1 parent 2f2f1cf commit fd666cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-crypto-classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const TEST_CASES = {
if (!common.hasFipsCrypto) {
TEST_CASES.Cipher = ['aes192', 'secret'];
TEST_CASES.Decipher = ['aes192', 'secret'];
TEST_CASES.DiffieHellman = [256];
}

for (const [clazz, args] of Object.entries(TEST_CASES)) {
Expand Down

0 comments on commit fd666cd

Please sign in to comment.