File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
22
'use strict' ;
23
23
24
24
const common = require ( '../common' ) ;
25
+ const fixtures = require ( '../common/fixtures' ) ;
26
+
27
+ // This test ensures that the tls parser causes a client error if the client
28
+ // sends invalid data.
25
29
26
30
if ( ! common . hasCrypto )
27
31
common . skip ( 'missing crypto' ) ;
@@ -30,11 +34,10 @@ const assert = require('assert');
30
34
const tls = require ( 'tls' ) ;
31
35
32
36
const net = require ( 'net' ) ;
33
- const fs = require ( 'fs' ) ;
34
37
35
38
const options = {
36
- key : fs . readFileSync ( ` ${ common . fixturesDir } / test_key.pem` ) ,
37
- cert : fs . readFileSync ( ` ${ common . fixturesDir } / test_cert.pem` )
39
+ key : fixtures . readSync ( ' test_key.pem' ) ,
40
+ cert : fixtures . readSync ( ' test_cert.pem' )
38
41
} ;
39
42
40
43
const bonkers = Buffer . alloc ( 1024 * 1024 , 42 ) ;
You can’t perform that action at this time.
0 commit comments