Commit e68ef29 1 parent 71daa68 commit e68ef29 Copy full SHA for e68ef29
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 1
1
'use strict' ;
2
2
const common = require ( '../common' ) ;
3
+ const fixtures = require ( '../common/fixtures' ) ;
4
+
3
5
if ( ! common . hasCrypto )
4
6
common . skip ( 'missing crypto' ) ;
5
7
6
8
const assert = require ( 'assert' ) ;
7
9
const tls = require ( 'tls' ) ;
8
- const fs = require ( 'fs' ) ;
9
10
10
11
const buf = Buffer . allocUnsafe ( 10000 ) ;
11
12
let received = 0 ;
12
13
const maxChunk = 768 ;
13
14
14
15
const server = tls . createServer ( {
15
- key : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-key.pem` ) ,
16
- cert : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-cert.pem` )
16
+ key : fixtures . readKey ( ' agent1-key.pem' ) ,
17
+ cert : fixtures . readKey ( ' agent1-cert.pem' )
17
18
} , function ( c ) {
18
19
// Lower and upper limits
19
20
assert ( ! c . setMaxSendFragment ( 511 ) ) ;
You can’t perform that action at this time.
0 commit comments