File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ const common = require('../common');
33if ( ! common . hasCrypto )
44 common . skip ( 'missing crypto' ) ;
55
6+ const fixtures = require ( '../common/fixtures' ) ;
7+
68const assert = require ( 'assert' ) ;
79const https = require ( 'https' ) ;
8- const fs = require ( 'fs' ) ;
9- const path = require ( 'path' ) ;
1010
1111const options = {
12- key : fs . readFileSync ( path . join ( common . fixturesDir , 'test_key.pem' ) ) ,
13- cert : fs . readFileSync ( path . join ( common . fixturesDir , 'test_cert.pem' ) )
12+ key : fixtures . readSync ( 'test_key.pem' ) ,
13+ cert : fixtures . readSync ( 'test_cert.pem' )
1414} ;
1515
1616const server = https . createServer ( options , common . mustCall ( function ( req , res ) {
@@ -51,7 +51,7 @@ function rejectUnauthorized() {
5151function authorized ( ) {
5252 const options = {
5353 port : server . address ( ) . port ,
54- ca : [ fs . readFileSync ( path . join ( common . fixturesDir , 'test_cert.pem' ) ) ]
54+ ca : [ fixtures . readSync ( 'test_cert.pem' ) ]
5555 } ;
5656 options . agent = new https . Agent ( options ) ;
5757 const req = https . request ( options , function ( res ) {
You can’t perform that action at this time.
0 commit comments