Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test/parallel/test-tls-cert-regression.js
Co-authored-by: Richard Lau <rlau@redhat.com>
  • Loading branch information
mhdawson and richardlau authored Sep 19, 2024
commit 38bb9d6f0b7280be15df201b35f30e49e65d0e83
4 changes: 2 additions & 2 deletions test/parallel/test-tls-cert-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ while (cert[cert.length - 1 - i] === 0x0a) i++;
if (i !== 0) cert = cert.slice(0, cert.length - i);

function test(cert, key, cb) {
assert.notStrictEqual(cert[cert.length - 1], 0x0a);
assert.notStrictEqual(key[key.length - 1], 0x0a);
assert.notStrictEqual(cert.at(-1), 0x0a);
assert.notStrictEqual(key.at(-1), 0x0a);
const server = tls.createServer({
cert,
key
Expand Down