Skip to content

Commit 6285e72

Browse files
Shawn McGintyMylesBorins
Shawn McGinty
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 <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent fa8315c commit 6285e72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34

45
if (!common.hasCrypto)
56
common.skip('missing crypto');
67

78
const tls = require('tls');
8-
const fs = require('fs');
99
const net = require('net');
1010

1111
const options = {
12-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
13-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`)
12+
key: fixtures.readKey('agent2-key.pem'),
13+
cert: fixtures.readKey('agent2-cert.pem')
1414
};
1515

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

0 commit comments

Comments
 (0)