From 84f6964d25373a4259943b21069f02e8b8be9d39 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 f9316a261b9877..98e43b27d4cebd 100644 --- a/test/parallel/test-https-drain.js +++ b/test/parallel/test-https-drain.js @@ -24,14 +24,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;