From d86e3478f37a14d581bf8e67880f0387f3bb74c2 Mon Sep 17 00:00:00 2001 From: Bryan English Date: Thu, 28 Sep 2017 11:57:36 -0700 Subject: [PATCH] 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. PR-URL: https://github.com/nodejs/node/pull/15662 Fixes: https://github.com/nodejs/node/issues/15655 Reviewed-By: Refael Ackermann Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Rich Trott --- test/parallel/test-crypto-classes.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-crypto-classes.js b/test/parallel/test-crypto-classes.js index 3923cb0dc7..78d248c2b2 100644 --- a/test/parallel/test-crypto-classes.js +++ b/test/parallel/test-crypto-classes.js @@ -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)) {