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();