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 11'use strict' ;
22
33const 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.
48
59if ( ! common . hasCrypto )
610 common . skip ( 'missing crypto' ) ;
@@ -9,11 +13,10 @@ const assert = require('assert');
913const tls = require ( 'tls' ) ;
1014
1115const net = require ( 'net' ) ;
12- const fs = require ( 'fs' ) ;
1316
1417const 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' )
1720} ;
1821
1922const bonkers = Buffer . alloc ( 1024 * 1024 , 42 ) ;
You can’t perform that action at this time.
0 commit comments