File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ const common = require('../common');
2424if ( ! common . hasCrypto )
2525 common . skip ( 'missing crypto' ) ;
2626
27+ const fixtures = require ( '../common/fixtures' ) ;
28+
2729const assert = require ( 'assert' ) ;
2830const https = require ( 'https' ) ;
2931const fs = require ( 'fs' ) ;
3032const path = require ( 'path' ) ;
3133
3234const options = {
33- key : fs . readFileSync ( path . join ( common . fixturesDir , 'test_key.pem' ) ) ,
34- cert : fs . readFileSync ( path . join ( common . fixturesDir , 'test_cert.pem' ) )
35+ key : fs . readFileSync ( fixtures . path ( 'test_key.pem' ) ) ,
36+ cert : fs . readFileSync ( fixtures . path ( 'test_cert.pem' ) )
3537} ;
3638
3739const server = https . createServer ( options , common . mustCall ( function ( req , res ) {
@@ -72,7 +74,7 @@ function rejectUnauthorized() {
7274function authorized ( ) {
7375 const options = {
7476 port : server . address ( ) . port ,
75- ca : [ fs . readFileSync ( path . join ( common . fixturesDir , 'test_cert.pem' ) ) ]
77+ ca : [ fs . readFileSync ( fixtures . path ( 'test_cert.pem' ) ) ]
7678 } ;
7779 options . agent = new https . Agent ( options ) ;
7880 const req = https . request ( options , function ( res ) {
You can’t perform that action at this time.
0 commit comments