diff options
author | Roger Jiang <rogerj.2010@gmail.com> | 2017-10-06 09:34:58 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-10-13 13:48:39 -0700 |
commit | 4e2e15f79b542ddb0193c8c32f1e49341abddb5e (patch) | |
tree | 0b775500c57a81679b073c308085b3ab1f30c770 /test/parallel/test-https-strict.js | |
parent | cc258af0e4898338b6be49ac79b49dc28169d0c9 (diff) | |
download | android-node-v8-4e2e15f79b542ddb0193c8c32f1e49341abddb5e.tar.gz android-node-v8-4e2e15f79b542ddb0193c8c32f1e49341abddb5e.tar.bz2 android-node-v8-4e2e15f79b542ddb0193c8c32f1e49341abddb5e.zip |
test: switch to use common.fixtures.fixturesDir
code and learn 2017 first task is to switch from common.fixturesDir to
common.fixtures.fixturesDir in test-https-strict.js
PR-URL: https://github.com/nodejs/node/pull/15814
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-https-strict.js')
-rw-r--r-- | test/parallel/test-https-strict.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/test/parallel/test-https-strict.js b/test/parallel/test-https-strict.js index 51d209b4ed..05bbe43a84 100644 --- a/test/parallel/test-https-strict.js +++ b/test/parallel/test-https-strict.js @@ -21,6 +21,7 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -29,15 +30,9 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; const assert = require('assert'); const https = require('https'); -const fs = require('fs'); -const path = require('path'); - -function file(fname) { - return path.resolve(common.fixturesDir, 'keys', fname); -} function read(fname) { - return fs.readFileSync(file(fname)); + return fixtures.readKey(fname); } // key1 is signed by ca1. |