From 9943cb2950f392bea45f7e1dbe0da53385af2188 Mon Sep 17 00:00:00 2001 From: kysnm Date: Fri, 6 Oct 2017 10:03:37 -0700 Subject: [PATCH] test: fixtures in test-http2-respond-file-fd-range PR-URL: https://github.com/nodejs/node/pull/15878 Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Gireesh Punathil --- test/parallel/test-http2-respond-file-fd-range.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-file-fd-range.js b/test/parallel/test-http2-respond-file-fd-range.js index 45d69a0598b294..fdf9b5e2cd3b4b 100644 --- a/test/parallel/test-http2-respond-file-fd-range.js +++ b/test/parallel/test-http2-respond-file-fd-range.js @@ -5,9 +5,9 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); const http2 = require('http2'); const assert = require('assert'); -const path = require('path'); const fs = require('fs'); const { @@ -15,7 +15,7 @@ const { HTTP2_HEADER_CONTENT_LENGTH } = http2.constants; -const fname = path.resolve(common.fixturesDir, 'printA.js'); +const fname = fixtures.path('printA.js'); const data = fs.readFileSync(fname); const fd = fs.openSync(fname, 'r');