Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5719bea

Browse filesBrowse files
Dara HayesMylesBorins
authored andcommitted
test: update test to use fixtures.readKey
Use fixtures.readKey() rather than common.fixturesDir in test-regress-GH-1531. PR-URL: #16811 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent cb08f5d commit 5719bea
Copy full SHA for 5719bea

File tree

Expand file treeCollapse file tree

1 file changed

+8
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-4
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-regress-GH-1531.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-regress-GH-1531.js
+8-4Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
'use strict';
22
const 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+
48
if (!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

1115
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')
1418
};
1519

1620
const server = https.createServer(options, function(req, res) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.