test: fix test-dh-regr for OpenSSL 3

PR-URL: https://github.com/nodejs/node/pull/34289
Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
Rich Trott committed 2021-04-10 15:17:56 -07:00
1 parent 213ae4f4c6
commit 8cee28465c
1 file changed
+1 -1
+1 -1
View File
@@ -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();