From 66fd6a1409c65fe692bea17ac9ad62297692daa2 Mon Sep 17 00:00:00 2001 From: szhang351 Date: Fri, 6 Oct 2017 09:28:31 -0700 Subject: [PATCH] test: use fixtures.readSync PR-URL: https://github.com/nodejs/node/pull/15841/ Reviewed-By: Anna Henningsen Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca --- test/parallel/test-https-drain.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-https-drain.js b/test/parallel/test-https-drain.js index 77cf56c0d51bda..305faee4f3abf2 100644 --- a/test/parallel/test-https-drain.js +++ b/test/parallel/test-https-drain.js @@ -3,14 +3,13 @@ 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 fs = require('fs'); -const path = require('path'); 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 bufSize = 1024 * 1024;