diff options
author | Nicolas 'Pixel' Noble <pixel@nobis-crew.org> | 2017-10-06 10:01:58 -0700 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2017-10-22 20:47:59 +0530 |
commit | cfea677a5ee82db7c031adf0cdd828e56a5ccd0b (patch) | |
tree | c60a8ab4ad5d76eca24eb78cefe2f3f846465bb5 /test/parallel/test-https-timeout-server.js | |
parent | 438e7fdaf2f0c05e964bc988ff2b6e3d273de1cb (diff) | |
download | android-node-v8-cfea677a5ee82db7c031adf0cdd828e56a5ccd0b.tar.gz android-node-v8-cfea677a5ee82db7c031adf0cdd828e56a5ccd0b.tar.bz2 android-node-v8-cfea677a5ee82db7c031adf0cdd828e56a5ccd0b.zip |
test: use fixtures.readKey in https-timeout-server
Replace `common.fixturesDir` usage in test-https-timeout-server.js with
`fixtures.readKey()`.
PR-URL: https://github.com/nodejs/node/pull/15871
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-https-timeout-server.js')
-rw-r--r-- | test/parallel/test-https-timeout-server.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/parallel/test-https-timeout-server.js b/test/parallel/test-https-timeout-server.js index 17218ba805..ecc564192a 100644 --- a/test/parallel/test-https-timeout-server.js +++ b/test/parallel/test-https-timeout-server.js @@ -25,15 +25,16 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); + const assert = require('assert'); const https = require('https'); const net = require('net'); -const fs = require('fs'); 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'), handshakeTimeout: 50 }; |