Commit 65c5ff8 1 parent 9eac5aa commit 65c5ff8 Copy full SHA for 65c5ff8
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 @@ -3,18 +3,18 @@ const common = require('../common');
3
3
if ( ! common . hasCrypto )
4
4
common . skip ( 'missing crypto' ) ;
5
5
6
+ const fixtures = require ( '../common/fixtures' ) ;
6
7
const assert = require ( 'assert' ) ;
7
8
const tls = require ( 'tls' ) ;
8
- const fs = require ( 'fs' ) ;
9
9
10
10
const options = {
11
11
key : [
12
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ ec-key.pem` ) ,
13
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-key.pem` ) ,
12
+ fixtures . readKey ( ' ec-key.pem' ) ,
13
+ fixtures . readKey ( ' agent1-key.pem' ) ,
14
14
] ,
15
15
cert : [
16
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-cert.pem` ) ,
17
- fs . readFileSync ( ` ${ common . fixturesDir } /keys/ ec-cert.pem` )
16
+ fixtures . readKey ( ' agent1-cert.pem' ) ,
17
+ fixtures . readKey ( ' ec-cert.pem' ) ,
18
18
]
19
19
} ;
20
20
You can’t perform that action at this time.
0 commit comments