Skip to content

Commit

Permalink
test: use path.join in async-hooks/test-tlswrap.js
Browse files Browse the repository at this point in the history
PR-URL: #14319
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
vincentcn authored and Fishrock123 committed Jul 24, 2017
1 parent f1b09c0 commit 3c92b78
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/async-hooks/test-tlswrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const fs = require('fs');
const path = require('path');
const tls = require('tls');

const tick = require('./tick');
const initHooks = require('./init-hooks');
const fs = require('fs');
const { checkInvocations } = require('./hook-checks');
const tls = require('tls');

const hooks = initHooks();
hooks.enable();
Expand All @@ -19,8 +21,8 @@ hooks.enable();
//
const server = tls
.createServer({
cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'),
key: fs.readFileSync(common.fixturesDir + '/test_key.pem')
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')),
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem'))
})
.on('listening', common.mustCall(onlistening))
.on('secureConnection', common.mustCall(onsecureConnection))
Expand Down

0 comments on commit 3c92b78

Please sign in to comment.