diff options
author | Lance Barlaan <LPTBarlaan@gmail.com> | 2017-10-06 19:54:41 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2017-10-24 00:17:29 +0300 |
commit | b4fa45d641cd19d3dbd1add90b7e852c92f40ab1 (patch) | |
tree | f3be1a71ef2b0c7347664f9187b85405b0e2568e /test | |
parent | 737c9cfff03a042c189d31dcb4e99651dc43ebea (diff) |
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')
-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 267fa391a73..f28f92373c5 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); |