Skip to content

Commit a3edf40

Browse files
jellyaduh95
andauthored
Update test/parallel/test-crypto-oneshot-hash.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 95b7ba6 commit a3edf40

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ 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]) {
35-
// Skip failing tests on OpenSSL 3.4.0
36-
if (method.startsWith("shake"))
37-
continue;
3838
const oldDigest = crypto.createHash(method).update(input).digest(outputEncoding || 'hex');
3939
const digestFromBuffer = crypto.hash(method, input, outputEncoding);
4040
assert.deepStrictEqual(digestFromBuffer, oldDigest,

0 commit comments

Comments
 (0)