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 2f66faf

Browse filesBrowse files
t-k-ggibfahn
authored andcommitted
test: use fixtures module in test-https-pfx
PR-URL: #15895 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent d2e4a87 commit 2f66faf
Copy full SHA for 2f66faf

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-https-pfx.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-https-pfx.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
2425
if (!common.hasCrypto)
2526
common.skip('missing crypto');
2627

28+
const fixtures = require('../common/fixtures');
29+
2730
const assert = require('assert');
28-
const fs = require('fs');
2931
const https = require('https');
3032

31-
const pfx = fs.readFileSync(`${common.fixturesDir}/test_cert.pfx`);
33+
const pfx = fixtures.readSync('test_cert.pfx');
3234

3335
const options = {
3436
host: '127.0.0.1',

0 commit comments

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