From 64560cf08c1626a0414fa98872037751e1a3a1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pe=C3=B1arrieta?= Date: Fri, 6 Oct 2017 09:46:22 -0700 Subject: [PATCH] test: replace fixturesDir with fixtures methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15833 Reviewed-By: Ryan Graham Reviewed-By: Benjamin Gruenbaum Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- test/parallel/test-http2-respond-file-fd-errors.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-file-fd-errors.js b/test/parallel/test-http2-respond-file-fd-errors.js index 95c4b5fea6..e5cc280613 100644 --- a/test/parallel/test-http2-respond-file-fd-errors.js +++ b/test/parallel/test-http2-respond-file-fd-errors.js @@ -3,8 +3,8 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); const http2 = require('http2'); -const path = require('path'); const fs = require('fs'); const { @@ -29,7 +29,7 @@ const types = { symbol: Symbol('test') }; -const fname = path.resolve(common.fixturesDir, 'elipses.txt'); +const fname = fixtures.path('elipses.txt'); const fd = fs.openSync(fname, 'r'); const server = http2.createServer();