From 6d33564b1ae937e4dda2555b8f1eeb38ea09c22f 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 a49b44d592b3a4..f1886277c73ee4 100644 --- a/test/parallel/test-tls-async-cb-after-socket-end.js +++ b/test/parallel/test-tls-async-cb-after-socket-end.js @@ -4,17 +4,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) {