Skip to content

Commit db07d1f

Browse files
committed
test: cleanup file per ryan's suggestion
1 parent d259acc commit db07d1f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/parallel/test-tls-async-cb-after-socket-end.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,13 @@ const common = require('../common');
44
const fixtures = require('../common/fixtures');
55
if (!common.hasCrypto)
66
common.skip('missing crypto');
7-
8-
const path = require('path');
9-
const fs = require('fs');
107
const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET;
11-
128
const tls = require('tls');
139

1410
const options = {
1511
secureOptions: SSL_OP_NO_TICKET,
16-
key: fs.readFileSync(path.join(fixtures.fixturesDir, 'test_key.pem')),
17-
cert: fs.readFileSync(path.join(fixtures.fixturesDir, 'test_cert.pem'))
12+
key: fixtures.readSync('test_key.pem'),
13+
cert: fixtures.readSync('test_cert.pem')
1814
};
1915

2016
const server = tls.createServer(options, function(c) {

0 commit comments

Comments
 (0)