diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-06-06 01:19:24 +0300 |
---|---|---|
committer | Refael Ackermann <refack@gmail.com> | 2019-06-06 02:01:13 +0300 |
commit | 965ffc4cb9a55d26192a95485b57afe4573990b0 (patch) | |
tree | 9352dc45708cad51baddc9114170bc9b0919d495 /benchmark/tls/tls-connect.js | |
parent | 81a9c7201f66855cdca534dae1a3f53f822a009b (diff) |
Revert "test: move all test keys/certs under `test/fixtures/keys/`"
PR-URL: https://github.com/nodejs/node/pull/28083
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Diffstat (limited to 'benchmark/tls/tls-connect.js')
-rw-r--r-- | benchmark/tls/tls-connect.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/benchmark/tls/tls-connect.js b/benchmark/tls/tls-connect.js index 4300f6841f0..fa6e2cb80ab 100644 --- a/benchmark/tls/tls-connect.js +++ b/benchmark/tls/tls-connect.js @@ -1,5 +1,6 @@ 'use strict'; -const fixtures = require('../../test/common/fixtures'); +const fs = require('fs'); +const path = require('path'); const tls = require('tls'); const common = require('../common.js'); @@ -17,10 +18,11 @@ var running = true; function main(conf) { dur = conf.dur; concurrency = conf.concurrency; + const cert_dir = path.resolve(__dirname, '../../test/fixtures'); const options = { - key: fixtures.readKey('rsa_private.pem'), - cert: fixtures.readKey('rsa_cert.crt'), - ca: fixtures.readKey('rsa_ca.crt'), + key: fs.readFileSync(`${cert_dir}/test_key.pem`), + cert: fs.readFileSync(`${cert_dir}/test_cert.pem`), + ca: [ fs.readFileSync(`${cert_dir}/test_ca.pem`) ], ciphers: 'AES256-GCM-SHA384' }; |