Skip to content

Commit 2a74fed

Browse files
Shawn McGintygireeshpunathil
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 03550a5 commit 2a74fed

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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)