Browse Source

test: switch to use common.fixtures module for fixturesDir

PR-URL: https://github.com/nodejs/node/pull/15821
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
v9.x-staging
r1cebank 7 years ago
committed by Gireesh Punathil
parent
commit
2ddb2fad94
  1. 7
      test/parallel/test-tls-connect-given-socket.js

7
test/parallel/test-tls-connect-given-socket.js

@ -23,16 +23,15 @@
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const tls = require('tls');
const net = require('net');
const fs = require('fs');
const path = require('path');
const options = {
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, common.mustCall((socket) => {

Loading…
Cancel
Save