From 8cee28465ce2a998f9efbd4ada6db0d04e079d31 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 7 Apr 2021 13:01:55 -0700 Subject: [PATCH] test: fix test-dh-regr for OpenSSL 3 PR-URL: /~https://github.com/nodejs/node/pull/34289 Reviewed-By: Richard Lau --- test/pummel/test-dh-regr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pummel/test-dh-regr.js b/test/pummel/test-dh-regr.js index f2da464bbbfbd7..bb041e4c5d1033 100644 --- a/test/pummel/test-dh-regr.js +++ b/test/pummel/test-dh-regr.js @@ -29,7 +29,7 @@ const crypto = require('crypto'); // FIPS requires length >= 1024 but we use 256 in this test to keep it from // taking too long and timing out in CI. -const length = common.hasFipsCrypto ? 1024 : 256; +const length = (common.hasFipsCrypto || common.hasOpenSSL3) ? 1024 : 256; const p = crypto.createDiffieHellman(length).getPrime();