Skip to content

Commit 1320fb9

Browse files
committed
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: openssl/openssl@45aac10 PR-URL: #53229 Reviewed-By: Tim Perry <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
1 parent cc3cdf7 commit 1320fb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/parallel/test-tls-enable-trace-cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ child.on('close', common.mustCall((code, signal) => {
3636
assert.strictEqual(signal, null);
3737
assert.strictEqual(stdout.trim(), '');
3838
assert.match(stderr, /Warning: Enabling --trace-tls can expose sensitive/);
39-
assert.match(stderr, /Sent Record/);
39+
assert.match(stderr, /Sent (?:TLS )?Record/);
4040
}));
4141

4242
function test() {

test/parallel/test-tls-enable-trace.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ let stderr = '';
2323
child.stderr.setEncoding('utf8');
2424
child.stderr.on('data', (data) => stderr += data);
2525
child.on('close', common.mustCall(() => {
26-
assert.match(stderr, /Received Record/);
26+
assert.match(stderr, /Received (?:TLS )?Record/);
2727
assert.match(stderr, /ClientHello/);
2828
}));
2929

0 commit comments

Comments
 (0)