File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 21
21
22
22
'use strict' ;
23
23
const common = require ( '../common' ) ;
24
+ const fixtures = require ( '../common/fixtures' ) ;
24
25
if ( ! common . hasCrypto )
25
26
common . skip ( 'missing crypto' ) ;
26
27
@@ -29,14 +30,13 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
29
30
30
31
const assert = require ( 'assert' ) ;
31
32
const https = require ( 'https' ) ;
32
- const fs = require ( 'fs' ) ;
33
33
const url = require ( 'url' ) ;
34
34
35
35
const URL = url . URL ;
36
36
37
37
const options = {
38
- key : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-key.pem` ) ,
39
- cert : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-cert.pem` )
38
+ key : fixtures . readKey ( ' agent1-key.pem' ) ,
39
+ cert : fixtures . readKey ( ' agent1-cert.pem' )
40
40
} ;
41
41
42
42
const server = https . createServer ( options , common . mustCall ( ( req , res ) => {
You can’t perform that action at this time.
0 commit comments