Skip to content

Commit 6d33564

Browse files
dtokiMylesBorins
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 a6f04be commit 6d33564

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

+3-6
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ const common = require('../common');
44

55
if (!common.hasCrypto)
66
common.skip('missing crypto');
7-
8-
const path = require('path');
9-
const fs = require('fs');
7+
const fixtures = require('../common/fixtures');
108
const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET;
11-
129
const tls = require('tls');
1310

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

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

0 commit comments

Comments
 (0)