File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ if (!common.hasCrypto)
5
5
common . skip ( 'missing crypto' ) ;
6
6
7
7
const assert = require ( 'assert' ) ;
8
+ const fs = require ( 'fs' ) ;
9
+ const path = require ( 'path' ) ;
10
+ const tls = require ( 'tls' ) ;
11
+
8
12
const tick = require ( './tick' ) ;
9
13
const initHooks = require ( './init-hooks' ) ;
10
- const fs = require ( 'fs' ) ;
11
14
const { checkInvocations } = require ( './hook-checks' ) ;
12
- const tls = require ( 'tls' ) ;
13
15
14
16
const hooks = initHooks ( ) ;
15
17
hooks . enable ( ) ;
@@ -19,8 +21,8 @@ hooks.enable();
19
21
//
20
22
const server = tls
21
23
. createServer ( {
22
- cert : fs . readFileSync ( common . fixturesDir + '/ test_cert.pem') ,
23
- 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') )
24
26
} )
25
27
. on ( 'listening' , common . mustCall ( onlistening ) )
26
28
. on ( 'secureConnection' , common . mustCall ( onsecureConnection ) )
You can’t perform that action at this time.
0 commit comments