★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/39adfc8d48Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
test: replace anonymous function with arrow
PR-URL: #24527
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
codegagan authored and rvagg committed Nov 28, 2018
1 parent 6b88541 commit 39adfc8d48ab7dd02aabb8feb93cacde4225c13c
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-tls-peer-certificate-encoding.js
@@ -35,14 +35,14 @@ const options = {
ca: [ fixtures.readKey('ca2-cert.pem') ]
};

const server = tls.createServer(options, function(cleartext) {
const server = tls.createServer(options, (cleartext) => {
cleartext.end('World');
});
server.listen(0, common.mustCall(function() {
const socket = tls.connect({
port: this.address().port,
rejectUnauthorized: false
}, common.mustCall(function() {
}, common.mustCall(() => {
const peerCert = socket.getPeerCertificate();

console.error(util.inspect(peerCert));

0 comments on commit 39adfc8

Please sign in to comment.