Skip to content

Commit 1469eff

Browse files
dtokitargos
authored andcommitted
test: replaced fixturesDir with common.fixtures
PR-URL: #15836 Reviewed-By: Lance Ball <lball@redhat.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b463259 commit 1469eff

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33
const common = require('../common');
44
if (!common.hasCrypto)
55
common.skip('missing crypto');
6-
7-
const path = require('path');
8-
const fs = require('fs');
6+
const fixtures = require('../common/fixtures');
97
const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET;
10-
118
const tls = require('tls');
129

1310
const options = {
1411
secureOptions: SSL_OP_NO_TICKET,
15-
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
16-
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
12+
key: fixtures.readSync('test_key.pem'),
13+
cert: fixtures.readSync('test_cert.pem')
1714
};
1815

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

0 commit comments

Comments
 (0)