We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3749d7 commit 9f9e824Copy full SHA for 9f9e824
test/parallel/test-regress-GH-1531.js
@@ -1,16 +1,20 @@
1
'use strict';
2
const common = require('../common');
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
+
8
if (!common.hasCrypto)
9
common.skip('missing crypto');
10
-const https = require('https');
11
+const fixtures = require('../common/fixtures');
12
-const fs = require('fs');
13
+const https = require('https');
14
15
const options = {
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
16
+ key: fixtures.readKey('agent1-key.pem'),
17
+ cert: fixtures.readKey('agent1-cert.pem')
18
};
19
20
const server = https.createServer(options, function(req, res) {
0 commit comments