We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9396d2 commit ef67980Copy full SHA for ef67980
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