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 aaacddb

Browse filesBrowse files
Mark Walkergibfahn
authored andcommitted
test: use fixtures module in tls-handshake-error
PR-URL: #15939 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 977fe22 commit aaacddb
Copy full SHA for aaacddb

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-tls-handshake-error.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-handshake-error.js
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
'use strict';
22

33
const common = require('../common');
4+
45
if (!common.hasCrypto)
56
common.skip('missing crypto');
67

78
const assert = require('assert');
89
const tls = require('tls');
9-
const fs = require('fs');
10+
11+
const fixtures = require('../common/fixtures');
1012

1113
const server = tls.createServer({
12-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
13-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
14+
key: fixtures.readKey('agent1-key.pem'),
15+
cert: fixtures.readKey('agent1-cert.pem'),
1416
rejectUnauthorized: true
1517
}, function(c) {
1618
}).listen(0, common.mustCall(function() {

0 commit comments

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