Skip to content

Commit 5660b99

Browse files
jellymarco-ippolito
authored andcommitted
test: disable openssl 3.4.0 incompatible tests
The shake128/shake256 hashing algorithms broke due to an OpenSSL 3.4 incompatible change and now throws an Error. PR-URL: #56160 Refs: #56159 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent 861c99f commit 5660b99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎test/parallel/test-crypto-oneshot-hash.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const methods = crypto.getHashes();
3131
constinput=fs.readFileSync(fixtures.path('utf8_test_text.txt'));
3232

3333
for(constmethodofmethods){
34+
// Skip failing tests on OpenSSL 3.4.0
35+
if(method.startsWith('shake')&&common.hasOpenSSL(3,4))
36+
continue;
3437
for(constoutputEncodingof['buffer','hex','base64',undefined]){
3538
constoldDigest=crypto.createHash(method).update(input).digest(outputEncoding||'hex');
3639
constdigestFromBuffer=crypto.hash(method,input,outputEncoding);

0 commit comments

Comments
(0)