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 1
1
'use strict' ;
2
2
3
3
const common = require ( '../common' ) ;
4
+ const fixtures = require ( '../common/fixtures' ) ;
5
+
6
+ // This test ensures that the tls parser causes a client error if the client
7
+ // sends invalid data.
4
8
5
9
if ( ! common . hasCrypto )
6
10
common . skip ( 'missing crypto' ) ;
@@ -9,11 +13,10 @@ const assert = require('assert');
9
13
const tls = require ( 'tls' ) ;
10
14
11
15
const net = require ( 'net' ) ;
12
- const fs = require ( 'fs' ) ;
13
16
14
17
const options = {
15
- key : fs . readFileSync ( ` ${ common . fixturesDir } / test_key.pem` ) ,
16
- cert : fs . readFileSync ( ` ${ common . fixturesDir } / test_cert.pem` )
18
+ key : fixtures . readSync ( ' test_key.pem' ) ,
19
+ cert : fixtures . readSync ( ' test_cert.pem' )
17
20
} ;
18
21
19
22
const bonkers = Buffer . alloc ( 1024 * 1024 , 42 ) ;
You can’t perform that action at this time.
0 commit comments