File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ const common = require('../common');
24
24
if ( ! common . hasCrypto )
25
25
common . skip ( 'missing crypto' ) ;
26
26
27
+ const fixtures = require ( '../common/fixtures' ) ;
28
+
27
29
const assert = require ( 'assert' ) ;
28
30
const https = require ( 'https' ) ;
29
- const fs = require ( 'fs' ) ;
30
- const path = require ( 'path' ) ;
31
31
32
32
const options = {
33
- key : fs . readFileSync ( path . join ( common . fixturesDir , 'test_key.pem' ) ) ,
34
- cert : fs . readFileSync ( path . join ( common . fixturesDir , 'test_cert.pem' ) )
33
+ key : fixtures . readSync ( 'test_key.pem' ) ,
34
+ cert : fixtures . readSync ( 'test_cert.pem' )
35
35
} ;
36
36
37
37
const server = https . createServer ( options , common . mustCall ( function ( req , res ) {
@@ -72,7 +72,7 @@ function rejectUnauthorized() {
72
72
function authorized ( ) {
73
73
const options = {
74
74
port : server . address ( ) . port ,
75
- ca : [ fs . readFileSync ( path . join ( common . fixturesDir , 'test_cert.pem' ) ) ]
75
+ ca : [ fixtures . readSync ( 'test_cert.pem' ) ]
76
76
} ;
77
77
options . agent = new https . Agent ( options ) ;
78
78
const req = https . request ( options , function ( res ) {
You can’t perform that action at this time.
0 commit comments