From 5061370de695cef4e57b2fa19015765a5a742d5d Mon Sep 17 00:00:00 2001 From: Dolapo Toki Date: Fri, 6 Oct 2017 09:39:43 -0700 Subject: [PATCH] test: replaced fixturesDir with common.fixtures PR-URL: https://github.com/nodejs/node/pull/15836 Reviewed-By: Lance Ball Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca --- test/parallel/test-tls-async-cb-after-socket-end.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-tls-async-cb-after-socket-end.js b/test/parallel/test-tls-async-cb-after-socket-end.js index 6b4d2bd9f5..2e1fbe54ae 100644 --- a/test/parallel/test-tls-async-cb-after-socket-end.js +++ b/test/parallel/test-tls-async-cb-after-socket-end.js @@ -3,17 +3,14 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); - -const path = require('path'); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET; - const tls = require('tls'); const options = { secureOptions: SSL_OP_NO_TICKET, - 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 server = tls.createServer(options, function(c) {