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 <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>
  • Loading branch information
dtoki authored and joyeecheung committed Oct 13, 2017
1 parent 734ec0b commit c42cdd4
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 @@ -3,17 +3,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 c42cdd4

Please sign in to comment.