Commit 5d80f00 1 parent 4e2e15f commit 5d80f00 Copy full SHA for 5d80f00
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,18 +24,18 @@ const common = require('../common');
24
24
if ( ! common . hasCrypto )
25
25
common . skip ( 'missing crypto' ) ;
26
26
27
+ const fixtures = require ( '../common/fixtures' ) ;
27
28
const assert = require ( 'assert' ) ;
28
29
const tls = require ( 'tls' ) ;
29
- const fs = require ( 'fs' ) ;
30
30
31
31
const options = {
32
32
key : [
33
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ ec-key.pem` ) ,
34
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-key.pem` ) ,
33
+ fixtures . readKey ( ' ec-key.pem' ) ,
34
+ fixtures . readKey ( ' agent1-key.pem' ) ,
35
35
] ,
36
36
cert : [
37
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-cert.pem` ) ,
38
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ ec-cert.pem` )
37
+ fixtures . readKey ( ' agent1-cert.pem' ) ,
38
+ fixtures . readKey ( ' ec-cert.pem' ) ,
39
39
]
40
40
} ;
41
41
You can’t perform that action at this time.
0 commit comments