File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
const common = require ( '../common' ) ;
3
3
4
+ // This test ensures that a http request callback is called
5
+ // when the agent option is set
6
+ // See https://github.com/nodejs/node-v0.x-archive/issues/1531
7
+
4
8
if ( ! common . hasCrypto )
5
9
common . skip ( 'missing crypto' ) ;
6
10
7
- const https = require ( 'https ' ) ;
11
+ const fixtures = require ( '../common/fixtures ' ) ;
8
12
9
- const fs = require ( 'fs ' ) ;
13
+ const https = require ( 'https ' ) ;
10
14
11
15
const options = {
12
- key : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-key.pem` ) ,
13
- cert : fs . readFileSync ( ` ${ common . fixturesDir } /keys/ agent1-cert.pem` )
16
+ key : fixtures . readKey ( ' agent1-key.pem' ) ,
17
+ cert : fixtures . readKey ( ' agent1-cert.pem' )
14
18
} ;
15
19
16
20
const server = https . createServer ( options , function ( req , res ) {
You can’t perform that action at this time.
0 commit comments