Commit c0b79a5 Kasim Doctor
committed
1 parent 018375c commit c0b79a5 Copy full SHA for c0b79a5
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,16 @@ const common = require('../common');
25
25
if ( ! common . hasCrypto )
26
26
common . skip ( 'missing crypto' ) ;
27
27
28
+ const fixtures = require ( '../common/fixtures' ) ;
29
+
28
30
const assert = require ( 'assert' ) ;
29
31
const tls = require ( 'tls' ) ;
30
- const fs = require ( 'fs' ) ;
31
32
const errorMessageRegex =
32
33
/ ^ E r r o r : e r r o r : 0 B 0 8 0 0 7 4 : x 5 0 9 c e r t i f i c a t e r o u t i n e s : X 5 0 9 _ c h e c k _ p r i v a t e _ k e y : k e y v a l u e s m i s m a t c h $ / ;
33
34
34
35
const options = {
35
- key : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-key.pem` ) ,
36
- cert : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent2-cert.pem` )
36
+ key : fixtures . readKey ( ' agent1-key.pem' ) ,
37
+ cert : fixtures . readKey ( ' agent2-cert.pem' )
37
38
} ;
38
39
39
40
assert . throws ( function ( ) {
You can’t perform that action at this time.
0 commit comments