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

Commit 984a851

Browse files
Paul Marion Camantigueaddaleax
Paul Marion Camantigue
authored andcommitted
test: use fixtures.readKey instead of fixturesDir
PR-URL: nodejs/node#15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent adfe2b6 commit 984a851

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-tls-delayed-attach.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ 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
const net = require('net');
3131

3232
const sent = 'hello world';
3333
let received = '';
3434

3535
const options = {
36-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
37-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
36+
key: fixtures.readKey('agent1-key.pem'),
37+
cert: fixtures.readKey('agent1-cert.pem')
3838
};
3939

4040
const server = net.createServer(function(c) {

0 commit comments

Comments
 (0)