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 2222'use strict' ;
2323
2424const 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.
2529
2630if ( ! common . hasCrypto )
2731 common . skip ( 'missing crypto' ) ;
@@ -30,11 +34,10 @@ const assert = require('assert');
3034const tls = require ( 'tls' ) ;
3135
3236const net = require ( 'net' ) ;
33- const fs = require ( 'fs' ) ;
3437
3538const 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' )
3841} ;
3942
4043const bonkers = Buffer . alloc ( 1024 * 1024 , 42 ) ;
You can’t perform that action at this time.
0 commit comments