aboutsummaryrefslogtreecommitdiff
path: root/test/pummel/test-https-no-reader.js
diff options
context:
space:
mode:
authorMiguel Angel Asencio Hurtado <maasencioh@gmail.com>2017-08-09 19:29:40 +0200
committerRuben Bridgewater <ruben@bridgewater.de>2017-08-27 21:14:34 -0300
commit9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9 (patch)
treea053ea27d73238b5b50f88503925b90aacf04537 /test/pummel/test-https-no-reader.js
parent53c5bf546e8e52db5b11287ab3bf1375819b369b (diff)
downloadandroid-node-v8-9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9.tar.gz
android-node-v8-9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9.tar.bz2
android-node-v8-9a5c3cf185c6e9c4fb9264cf8e61a74a5d697ff9.zip
test: continue normalizing fixtures use
PR-URL: https://github.com/nodejs/node/pull/14716 Refs: https://github.com/nodejs/node/pull/14332 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Diffstat (limited to 'test/pummel/test-https-no-reader.js')
-rw-r--r--test/pummel/test-https-no-reader.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/pummel/test-https-no-reader.js b/test/pummel/test-https-no-reader.js
index b8071b9ba9..985d888e6d 100644
--- a/test/pummel/test-https-no-reader.js
+++ b/test/pummel/test-https-no-reader.js
@@ -26,12 +26,11 @@ if (!common.hasCrypto)
const assert = require('assert');
const https = require('https');
-const fs = require('fs');
-const path = require('path');
+const fixtures = require('../common/fixtures');
const options = {
- key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
- cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
+ key: fixtures.readSync('test_key.pem'),
+ cert: fixtures.readSync('test_cert.pem')
};
const buf = Buffer.allocUnsafe(1024 * 1024);