diff options
author | Ben Hallion <bhallion@blackducksoftware.com> | 2017-10-06 09:32:08 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-10-14 20:28:16 -0700 |
commit | 2b76b5d8dd14b57eaad15b4082cc007296b4d630 (patch) | |
tree | 41c08539eddcdd4622b308b45e8bde4a3990d11b /test/parallel/test-tls-fast-writing.js | |
parent | 520cf1d6de3373a0949203aac7539cbc96761814 (diff) | |
download | android-node-v8-2b76b5d8dd14b57eaad15b4082cc007296b4d630.tar.gz android-node-v8-2b76b5d8dd14b57eaad15b4082cc007296b4d630.tar.bz2 android-node-v8-2b76b5d8dd14b57eaad15b4082cc007296b4d630.zip |
test: use fixtures module
Replace common.fixturesDir with fixtures module usage in
test/parallel/test-tls-fast-writing.js.
PR-URL: https://github.com/nodejs/node/pull/15808
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-fast-writing.js')
-rw-r--r-- | test/parallel/test-tls-fast-writing.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/parallel/test-tls-fast-writing.js b/test/parallel/test-tls-fast-writing.js index d80874eea6..937694228a 100644 --- a/test/parallel/test-tls-fast-writing.js +++ b/test/parallel/test-tls-fast-writing.js @@ -24,14 +24,13 @@ 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 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: fixtures.readSync('test_key.pem'), + cert: fixtures.readSync('test_cert.pem'), + ca: [ fixtures.readSync('test_ca.pem') ] }; const server = tls.createServer(options, onconnection); let gotChunk = false; |