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 @@ -4,6 +4,7 @@ const common = require('../common');
4
4
if ( ! common . hasCrypto )
5
5
common . skip ( 'missing crypto' ) ;
6
6
7
+ const path = require ( 'path' ) ;
7
8
const assert = require ( 'assert' ) ;
8
9
const tick = require ( './tick' ) ;
9
10
const initHooks = require ( './init-hooks' ) ;
@@ -19,8 +20,8 @@ hooks.enable();
19
20
//
20
21
const server = tls
21
22
. createServer ( {
22
- cert : fs . readFileSync ( ` ${ common . fixturesDir } / test_cert.pem` ) ,
23
- key : fs . readFileSync ( ` ${ common . fixturesDir } / test_key.pem` )
23
+ cert : fs . readFileSync ( path . join ( common . fixturesDir , ' test_cert.pem' ) ) ,
24
+ key : fs . readFileSync ( path . join ( common . fixturesDir , ' test_key.pem' ) )
24
25
} )
25
26
. on ( 'listening' , common . mustCall ( onlistening ) )
26
27
. on ( 'secureConnection' , common . mustCall ( onsecureConnection ) )
You can’t perform that action at this time.
0 commit comments