From 97008a7b0d7beee598bf53f2a1db0be14380d98b Mon Sep 17 00:00:00 2001 From: jkzing Date: Sun, 16 Jul 2017 15:10:07 +0800 Subject: [PATCH] test: replace string concatenation with path.join MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/14272 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Trevor Norris --- test/async-hooks/test-graph.tls-write.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/async-hooks/test-graph.tls-write.js b/test/async-hooks/test-graph.tls-write.js index 338a714c32..1408ff40ef 100644 --- a/test/async-hooks/test-graph.tls-write.js +++ b/test/async-hooks/test-graph.tls-write.js @@ -11,6 +11,7 @@ const initHooks = require('./init-hooks'); const verifyGraph = require('./verify-graph'); const fs = require('fs'); const tls = require('tls'); +const path = require('path'); const hooks = initHooks(); hooks.enable(); @@ -20,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))