File tree 1 file changed +6
-6
lines changed
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');
33
33
const server = tls . createServer ( {
34
34
key : fixtures . readSync ( [ '0-dns' , '0-dns-key.pem' ] ) ,
35
35
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 ( ( ) => {
38
38
c . destroy ( ) ;
39
39
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 , {
43
43
rejectUnauthorized : false
44
- } , common . mustCall ( function ( ) {
44
+ } , common . mustCall ( ( ) => {
45
45
const cert = c . getPeerCertificate ( ) ;
46
46
assert . strictEqual ( cert . subjectaltname ,
47
47
'DNS:good.example.org\0.evil.example.com, ' +
You can’t perform that action at this time.
0 commit comments