File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const initHooks = require('./init-hooks');
11
11
const verifyGraph = require ( './verify-graph' ) ;
12
12
const fs = require ( 'fs' ) ;
13
13
const tls = require ( 'tls' ) ;
14
+ const path = require ( 'path' ) ;
14
15
15
16
const hooks = initHooks ( ) ;
16
17
hooks . enable ( ) ;
@@ -20,8 +21,8 @@ hooks.enable();
20
21
//
21
22
const server = tls
22
23
. createServer ( {
23
- cert : fs . readFileSync ( common . fixturesDir + '/ test_cert.pem') ,
24
- key : fs . readFileSync ( common . fixturesDir + '/ test_key.pem')
24
+ cert : fs . readFileSync ( path . join ( common . fixturesDir , ' test_cert.pem') ) ,
25
+ key : fs . readFileSync ( path . join ( common . fixturesDir , ' test_key.pem') )
25
26
} )
26
27
. on ( 'listening' , common . mustCall ( onlistening ) )
27
28
. on ( 'secureConnection' , common . mustCall ( onsecureConnection ) )
You can’t perform that action at this time.
0 commit comments