Skip to content

Commit 185b80f

Browse files
authored
test,crypto: make tests work for BoringSSL
nodejs/node#57021
1 parent 89438df commit 185b80f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

patches/node/fix_crypto_tests_to_run_with_bssl.patch

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -294,24 +294,6 @@ index 48cd1ed4df61aaddeee8785cb90f83bdd9628187..a18aeb2bdffcc7a7e9ef12328b849994
294294
});
295295

296296
// No-pad encrypted string should return the same:
297-
diff --git a/test/parallel/test-crypto-prime.js b/test/parallel/test-crypto-prime.js
298-
index 5ffdc1394282be046150e3759f82f8787f5604f7..e1c7a7b4824a2df20a405355696022398216fa4f 100644
299-
--- a/test/parallel/test-crypto-prime.js
300-
+++ b/test/parallel/test-crypto-prime.js
301-
@@ -259,11 +259,11 @@ for (const checks of [-(2 ** 31), -1, 2 ** 31, 2 ** 32 - 1, 2 ** 32, 2 ** 50]) {
302-
bytes[0] = 0x1;
303-
assert.throws(() => checkPrime(bytes, common.mustNotCall()), {
304-
code: 'ERR_OSSL_BN_BIGNUM_TOO_LONG',
305-
- message: /bignum too long/
306-
+ message: /bignum[_ ]too[_ ]long/i
307-
});
308-
assert.throws(() => checkPrimeSync(bytes), {
309-
code: 'ERR_OSSL_BN_BIGNUM_TOO_LONG',
310-
- message: /bignum too long/
311-
+ message: /bignum[_ ]too[_ ]long/i
312-
});
313-
}
314-
315297
diff --git a/test/parallel/test-crypto-rsa-dsa.js b/test/parallel/test-crypto-rsa-dsa.js
316298
index dcd5045daaf58c60e27c1e2f7941033302241339..6ac75565792b92a97c622baba73f821d754b8d01 100644
317299
--- a/test/parallel/test-crypto-rsa-dsa.js

0 commit comments

Comments
 (0)