From 236f6e721724dd2ca83c852d65d45aac5c8ee994 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sat, 24 Oct 2026 00:47:44 +0200 Subject: [PATCH] test: fix TLS coalescing test for OpenSSL 4.1 Signed-off-by: Filip Skokan PR-URL: https://github.com/nodejs/node/pull/66962 Refs: https://ci.nodejs.org/job/node-test-pull-request/78600/ Reviewed-By: Antoine du Hamel Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- test/parallel/test-tls-coalesce-records.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-tls-coalesce-records.js b/test/parallel/test-tls-coalesce-records.js index 9eb6289c73a..d247ec29073 100644 --- a/test/parallel/test-tls-coalesce-records.js +++ b/test/parallel/test-tls-coalesce-records.js @@ -7,7 +7,7 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); -const { isBoringSSL } = require('../common/crypto'); +const { hasOpenSSL, isBoringSSL } = require('../common/crypto'); const assert = require('assert'); const net = require('net'); const tls = require('tls'); @@ -117,7 +117,7 @@ function sendPayload(socket) { })); client.on('data', (chunk) => chunks.push(chunk)); client.on('error', common.mustCall((err) => { - assert.strictEqual(err.code, isBoringSSL ? + assert.strictEqual(err.code, isBoringSSL || hasOpenSSL(4, 1) ? 'ERR_SSL_BAD_DECRYPT' : 'ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC'); assert.deepStrictEqual(Buffer.concat(chunks),