mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
test: fix TLS coalescing test for OpenSSL 4.1
Signed-off-by: Filip Skokan <panva.ip@gmail.com> 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 <duhamelantoine1995@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
2e4f8cfa20
commit
236f6e7217
1 file changed
+2
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user