File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11'use strict' ; 
2- require ( '../common' ) ; 
2+ const   common   =   require ( '../common' ) ; 
33const  fixtures  =  require ( '../common/fixtures' ) ; 
44
55// Adding a CA certificate to contextWithCert should not also add it to 
@@ -32,7 +32,7 @@ clientOptions.secureContext = contextWithoutCert;
3232connect ( { 
3333  client : clientOptions , 
3434  server : serverOptions , 
35- } ,  function ( err ,  pair ,  cleanup )  { 
35+ } ,  common . mustCall ( ( err ,  pair ,  cleanup )   =>  { 
3636  assert ( err ) ; 
3737  assert . strictEqual ( err . message ,  'unable to verify the first certificate' ) ; 
3838  cleanup ( ) ; 
@@ -43,8 +43,8 @@ connect({
4343  connect ( { 
4444    client : clientOptions , 
4545    server : serverOptions , 
46-   } ,  function ( err ,  pair ,  cleanup )  { 
46+   } ,  common . mustCall ( ( err ,  pair ,  cleanup )   =>  { 
4747    assert . ifError ( err ) ; 
4848    cleanup ( ) ; 
49-   } ) ; 
50- } ) ; 
49+   } ) ) ; 
50+ } ) ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments