Skip to content

Commit 63a2b55

Browse files
Shawn McGintyMylesBorins
authored andcommitted
test: replace common.fixturesDir
In test/parallel/test-tls-junk-closes-server.js, replaced common.fixtruesDir with usage of the common.fixtrues module. PR-URL: #15834 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent eeef06a commit 63a2b55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-tls-junk-closes-server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
2425

2526
if (!common.hasCrypto)
2627
common.skip('missing crypto');
2728

2829
const tls = require('tls');
29-
const fs = require('fs');
3030
const net = require('net');
3131

3232
const options = {
33-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
34-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`)
33+
key: fixtures.readKey('agent2-key.pem'),
34+
cert: fixtures.readKey('agent2-cert.pem')
3535
};
3636

3737
const server = tls.createServer(options, common.mustNotCall());

0 commit comments

Comments
 (0)