summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-destroy-stream.js
diff options
context:
space:
mode:
authorAlex Aubuchon <alex@aub.dev>2019-05-29 11:43:44 -0700
committerAli Ijaz Sheikh <ofrobots@google.com>2019-06-05 11:37:43 -0700
commit5d0869744d32fe7901daa568403396a1af12aff9 (patch)
treead5e1edf50674bf8b83169ef0a55fe79828bc92c /test/parallel/test-tls-destroy-stream.js
parentb250085df30a1dc64bef51c88d76ed13597b4088 (diff)
downloadandroid-node-v8-5d0869744d32fe7901daa568403396a1af12aff9.tar.gz
android-node-v8-5d0869744d32fe7901daa568403396a1af12aff9.tar.bz2
android-node-v8-5d0869744d32fe7901daa568403396a1af12aff9.zip
test: move test_[key|ca|cert] to fixtures/keys/
Lots of changes, but mostly just search/replace of fixtures.readSync(...) to fixtures.readKey([new key]...) Benchmarks modified to use fixtures.readKey(...): benchmark/tls/throughput.js benchmark/tls/tls-connect.js benchmark/tls/secure-pair.js Also be sure to review the change to L16 of test/parallel/test-crypto-sign-verify.js PR-URL: https://github.com/nodejs/node/pull/27962 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-destroy-stream.js')
-rw-r--r--test/parallel/test-tls-destroy-stream.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-tls-destroy-stream.js b/test/parallel/test-tls-destroy-stream.js
index b06d7728dc..a49e985a7e 100644
--- a/test/parallel/test-tls-destroy-stream.js
+++ b/test/parallel/test-tls-destroy-stream.js
@@ -18,9 +18,9 @@ tls.DEFAULT_MAX_VERSION = 'TLSv1.3';
const CONTENT = 'Hello World';
const tlsServer = tls.createServer(
{
- key: fixtures.readSync('test_key.pem'),
- cert: fixtures.readSync('test_cert.pem'),
- ca: [fixtures.readSync('test_ca.pem')],
+ key: fixtures.readKey('rsa_private.pem'),
+ cert: fixtures.readKey('rsa_cert.crt'),
+ ca: [fixtures.readKey('rsa_ca.crt')],
},
(socket) => {
socket.on('close', common.mustCall());