Skip to content

Commit cebbd83

Browse files
richardlautargos
authored andcommitted
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 <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>
1 parent 6303f19 commit cebbd83

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
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-tlscanexposesensitive/);
39-
assert.match(stderr,/SentRecord/);
39+
assert.match(stderr,/Sent(?:TLS)?Record/);
4040
}));
4141

4242
functiontest(){

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

Lines changed: 1 addition & 1 deletion
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,/ReceivedRecord/);
26+
assert.match(stderr,/Received(?:TLS)?Record/);
2727
assert.match(stderr,/ClientHello/);
2828
}));
2929

0 commit comments

Comments
 (0)