test: update TLS trace tests for OpenSSL >= 3.2

Update tests to allow for a slight change to the TLS trace messages
starting from OpenSSL 3.2.

Refs: https://github.com/openssl/openssl/commit/45aac10717479b5c2445e7704cd742b0d754aaa8
PR-URL: https://github.com/nodejs/node/pull/53229
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
Richard Lau committed 2024-09-27 14:05:41 +00:00
1 parent cc3cdf7cc0
commit 1320fb9475
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ child.on('close', common.mustCall((code, signal) => {
assert.strictEqual(signal, null);
assert.strictEqual(stdout.trim(), '');
assert.match(stderr, /Warning: Enabling --trace-tls can expose sensitive/);
assert.match(stderr, /Sent Record/);
assert.match(stderr, /Sent (?:TLS )?Record/);
}));
function test() {
+1 -1
View File
@@ -23,7 +23,7 @@ let stderr = '';
child.stderr.setEncoding('utf8');
child.stderr.on('data', (data) => stderr += data);
child.on('close', common.mustCall(() => {
assert.match(stderr, /Received Record/);
assert.match(stderr, /Received (?:TLS )?Record/);
assert.match(stderr, /ClientHello/);
}));