Skip to content

Commit

Permalink
test: update TLS trace tests for OpenSSL >= 3.2
Browse files Browse the repository at this point in the history
Update tests to allow for a slight change to the TLS trace messages
starting from OpenSSL 3.2.

Refs: openssl/openssl@45aac10
PR-URL: nodejs#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]>
  • Loading branch information
richardlau authored and eliphazbouye committed Jun 20, 2024
1 parent 79cad52 commit e943822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-tls-enable-trace-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-tls-enable-trace.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
}));

Expand Down

0 comments on commit e943822

Please sign in to comment.