Commit 8452af2 1 parent 86082a4 commit 8452af2 Copy full SHA for 8452af2
File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,14 @@ const common = require('../common');
25
25
if ( ! common . hasCrypto )
26
26
common . skip ( 'missing crypto' ) ;
27
27
28
+ const fixtures = require ( '../common/fixtures' ) ;
28
29
const http = require ( 'http' ) ;
29
30
const https = require ( 'https' ) ;
30
31
const assert = require ( 'assert' ) ;
31
32
const hostExpect = 'localhost' ;
32
- const fs = require ( 'fs' ) ;
33
- const path = require ( 'path' ) ;
34
- const fixtures = path . join ( common . fixturesDir , 'keys' ) ;
35
33
const options = {
36
- key : fs . readFileSync ( ` ${ fixtures } / agent1-key.pem` ) ,
37
- cert : fs . readFileSync ( ` ${ fixtures } / agent1-cert.pem` )
34
+ key : fixtures . readKey ( ' agent1-key.pem' ) ,
35
+ cert : fixtures . readKey ( ' agent1-cert.pem' )
38
36
} ;
39
37
let gotHttpsResp = false ;
40
38
let gotHttpResp = false ;
You can’t perform that action at this time.
0 commit comments