Skip to content

Commit 0d772a9

Browse files
jellyaduh95
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 6fa6d69 commit 0d772a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const methods = crypto.getHashes();
3131
const input = fs.readFileSync(fixtures.path('utf8_test_text.txt'));
3232

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

0 commit comments

Comments
 (0)