diff options
author | Lance Barlaan <LPTBarlaan@gmail.com> | 2017-10-06 09:54:41 -0700 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-10-19 01:52:48 -0200 |
commit | 5887d80351b453f500c09e53edbee769031016d7 (patch) | |
tree | a0ff59870ea2e52e10405ed98fcdc42b2f35dbd1 /test/parallel/test-tls-inception.js | |
parent | 8597a18cdbb339abd20a2342d263c8eee3bc51e8 (diff) | |
download | android-node-v8-5887d80351b453f500c09e53edbee769031016d7.tar.gz android-node-v8-5887d80351b453f500c09e53edbee769031016d7.tar.bz2 android-node-v8-5887d80351b453f500c09e53edbee769031016d7.zip |
test: use fixtures module
PR-URL: https://github.com/nodejs/node/pull/15872
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-tls-inception.js')
-rw-r--r-- | test/parallel/test-tls-inception.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js index 267fa391a7..f28f92373c 100644 --- a/test/parallel/test-tls-inception.js +++ b/test/parallel/test-tls-inception.js @@ -21,6 +21,7 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -28,13 +29,11 @@ if (!common.hasCrypto) const assert = require('assert'); const tls = require('tls'); -const fs = require('fs'); -const path = require('path'); const net = require('net'); const options = { - key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')), - cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')) + key: fixtures.readSync('test_key.pem'), + cert: fixtures.readSync('test_cert.pem') }; const body = 'A'.repeat(40000); |