mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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:
2 files changed
+2
-2
No files matched your search
@@ -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() {
|
||||
|
||||
@@ -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/);
|
||||
}));
|
||||
|
||||
|
||||
Reference in new issue
Block a user