diff options
author | Scott J Beck <scottjbeck@gmail.com> | 2017-10-06 09:53:49 -0700 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-10-28 22:54:26 +0200 |
commit | 64aded33ef310ca87e5566239ab2dbd12b1899b9 (patch) | |
tree | ab02f4a1baf46f6eaf902044ffd585412204190c | |
parent | eefee3e9a612696f5a0a25fa86bf91552e4bc616 (diff) | |
download | node-new-64aded33ef310ca87e5566239ab2dbd12b1899b9.tar.gz |
test: use fixtures module
PR-URL: https://github.com/nodejs/node/pull/15843
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
-rw-r--r-- | test/parallel/test-https-localaddress-bind-error.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/parallel/test-https-localaddress-bind-error.js b/test/parallel/test-https-localaddress-bind-error.js index a22db1e9e6..57e4dd054d 100644 --- a/test/parallel/test-https-localaddress-bind-error.js +++ b/test/parallel/test-https-localaddress-bind-error.js @@ -25,12 +25,13 @@ if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); -const fs = require('fs'); const https = require('https'); +const fixtures = require('../common/fixtures'); + const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem') }; const invalidLocalAddress = '1.2.3.4'; |