Skip to content

Commit

Permalink
test: replaced fixturesDir with common.fixtures
Browse files Browse the repository at this point in the history
PR-URL: #15836
Reviewed-By: Lance Ball <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
dtoki authored and MylesBorins committed Nov 28, 2017
1 parent a6f04be commit 6d33564
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/parallel/test-tls-async-cb-after-socket-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ const common = require('../common');

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

const path = require('path');
const fs = require('fs');
const fixtures = require('../common/fixtures');
const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET;

const tls = require('tls');

const options = {
secureOptions: SSL_OP_NO_TICKET,
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
key: fixtures.readSync('test_key.pem'),
cert: fixtures.readSync('test_cert.pem')
};

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

0 comments on commit 6d33564

Please sign in to comment.