File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ const fixtures = require('../common/fixtures');
3333const server = tls . createServer ( {
3434 key : fixtures . readSync ( [ '0-dns' , '0-dns-key.pem' ] ) ,
3535 cert : fixtures . readSync ( [ '0-dns' , '0-dns-cert.pem' ] )
36- } , function ( c ) {
37- c . once ( 'data' , function ( ) {
36+ } , common . mustCall ( ( c ) => {
37+ c . once ( 'data' , common . mustCall ( ( ) => {
3838 c . destroy ( ) ;
3939 server . close ( ) ;
40- } ) ;
41- } ) . listen ( 0 , common . mustCall ( function ( ) {
42- const c = tls . connect ( this . address ( ) . port , {
40+ } ) ) ;
41+ } ) ) . listen ( 0 , common . mustCall ( ( ) => {
42+ const c = tls . connect ( server . address ( ) . port , {
4343 rejectUnauthorized : false
44- } , common . mustCall ( function ( ) {
44+ } , common . mustCall ( ( ) => {
4545 const cert = c . getPeerCertificate ( ) ;
4646 assert . strictEqual ( cert . subjectaltname ,
4747 'DNS:good.example.org\0.evil.example.com, ' +
You can’t perform that action at this time.
0 commit comments