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: #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>
  • Loading branch information
richardlau authored and targos committed Jun 3, 2024
1 parent 6303f19 commit cebbd83
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 cebbd83

Please sign in to comment.