Skip to content

Commit 94c7331

Browse files
jkzingFishrock123
authored andcommitted
test: replace string concatenation with path.join
PR-URL: #14272 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
1 parent 0ebb4df commit 94c7331

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/async-hooks/test-graph.tls-write.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const initHooks = require('./init-hooks');
1111
const verifyGraph = require('./verify-graph');
1212
const fs = require('fs');
1313
const tls = require('tls');
14+
const path = require('path');
1415

1516
const hooks = initHooks();
1617
hooks.enable();
@@ -20,8 +21,8 @@ hooks.enable();
2021
//
2122
const server = tls
2223
.createServer({
23-
cert: fs.readFileSync(common.fixturesDir + '/test_cert.pem'),
24-
key: fs.readFileSync(common.fixturesDir + '/test_key.pem')
24+
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')),
25+
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem'))
2526
})
2627
.on('listening', common.mustCall(onlistening))
2728
.on('secureConnection', common.mustCall(onsecureConnection))

0 commit comments

Comments
 (0)