Skip to content

Commit 28756b3

Browse files
tobyfarleyMylesBorins
authored andcommitted
test: use fixtures in tls-friendly-error-message
PR-URL: #15905 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a05fe5f commit 28756b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-tls-friendly-error-message.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ const common = require('../common');
33
if (!common.hasCrypto)
44
common.skip('missing crypto');
55

6+
const fixtures = require('../common/fixtures');
67
const assert = require('assert');
78
const tls = require('tls');
8-
const fs = require('fs');
99

10-
const key = fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`);
11-
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`);
10+
const key = fixtures.readKey('agent1-key.pem');
11+
const cert = fixtures.readKey('agent1-cert.pem');
1212

1313
tls.createServer({ key: key, cert: cert }, common.mustCall(function(conn) {
1414
conn.end();

0 commit comments

Comments
 (0)