mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: avoid test timeouts on rpi
Generating 1024-bit primes on rpi test machines sometimes causes timeouts. Avoid this situation by using 256-bit primes when not running in FIPS mode. Fixes: https://github.com/nodejs/node/issues/3881 PR-URL: https://github.com/nodejs/node/pull/3902 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Ben Noordhuis <ben@strongloop.com>
This commit is contained in:
1 parent
272732e76b
commit
bc27379453
2 files changed
+2
-2
No files matched your search
@@ -513,7 +513,7 @@ assert.throws(function() {
|
||||
|
||||
// Test Diffie-Hellman with two parties sharing a secret,
|
||||
// using various encodings as we go along
|
||||
var dh1 = crypto.createDiffieHellman(1024);
|
||||
var dh1 = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
|
||||
var p1 = dh1.getPrime('buffer');
|
||||
var dh2 = crypto.createDiffieHellman(p1, 'base64');
|
||||
var key1 = dh1.generateKeys();
|
||||
|
||||
@@ -11,7 +11,7 @@ var crypto = require('crypto');
|
||||
|
||||
// Test Diffie-Hellman with two parties sharing a secret,
|
||||
// using various encodings as we go along
|
||||
var dh1 = crypto.createDiffieHellman(1024);
|
||||
var dh1 = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
|
||||
var p1 = dh1.getPrime('buffer');
|
||||
var dh2 = crypto.createDiffieHellman(p1, 'buffer');
|
||||
var key1 = dh1.generateKeys();
|
||||
|
||||
Reference in new issue
Block a user