File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22const common = require ( '../common' ) ;
33
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+
48if ( ! common . hasCrypto )
59 common . skip ( 'missing crypto' ) ;
610
7- const https = require ( 'https ' ) ;
11+ const fixtures = require ( '../common/fixtures ' ) ;
812
9- const fs = require ( 'fs ' ) ;
13+ const https = require ( 'https ' ) ;
1014
1115const 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' )
1418} ;
1519
1620const server = https . createServer ( options , function ( req , res ) {
You can’t perform that action at this time.
0 commit comments