diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-04-28 04:06:42 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-05 17:39:05 +0300 |
commit | 8b76c3e60c7b5c274c757257580a2c0faae69097 (patch) | |
tree | a9f686995887dbeb0b5c5b23c5f3188987c99b2e /test/parallel/test-tls-fast-writing.js | |
parent | 6bcf65d4a788a73b3c3f27d75796609f948f7885 (diff) | |
download | node-new-8b76c3e60c7b5c274c757257580a2c0faae69097.tar.gz |
test: reduce string concatenations
PR-URL: https://github.com/nodejs/node/pull/12735
Refs: https://github.com/nodejs/node/pull/12455
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-fast-writing.js')
-rw-r--r-- | test/parallel/test-tls-fast-writing.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-tls-fast-writing.js b/test/parallel/test-tls-fast-writing.js index e0f6062da0..05722d8959 100644 --- a/test/parallel/test-tls-fast-writing.js +++ b/test/parallel/test-tls-fast-writing.js @@ -32,9 +32,9 @@ const tls = require('tls'); const fs = require('fs'); const dir = common.fixturesDir; -const options = { key: fs.readFileSync(dir + '/test_key.pem'), - cert: fs.readFileSync(dir + '/test_cert.pem'), - ca: [ fs.readFileSync(dir + '/test_ca.pem') ] }; +const options = { key: fs.readFileSync(`${dir}/test_key.pem`), + cert: fs.readFileSync(`${dir}/test_cert.pem`), + ca: [ fs.readFileSync(`${dir}/test_ca.pem`) ] }; const server = tls.createServer(options, onconnection); let gotChunk = false; |