Skip to content
This repository was archived by the owner on Aug 31, 2018. It is now read-only.

Commit da68338

Browse files
tobyfarleyaddaleax
authored andcommitted
test: use fixtures in tls-friendly-error-message
PR-URL: nodejs/node#15905 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a1502b1 commit da68338

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
@@ -24,12 +24,12 @@ const common = require('../common');
2424
if (!common.hasCrypto)
2525
common.skip('missing crypto');
2626

27+
const fixtures = require('../common/fixtures');
2728
const assert = require('assert');
2829
const tls = require('tls');
29-
const fs = require('fs');
3030

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

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

0 commit comments

Comments
 (0)