From 64d3ca8c6f9b8937ac4f718f8c7db5b8649e1590 Mon Sep 17 00:00:00 2001 From: kysnm Date: Fri, 6 Oct 2017 10:03:37 -0700 Subject: [PATCH] test: Replace common.fixturesDir with usage of the common.fixtures --- 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..bcc64dfb3a5f70 100644 --- a/test/parallel/test-http2-respond-file-fd-range.js +++ b/test/parallel/test-http2-respond-file-fd-range.js @@ -3,11 +3,11 @@ // Tests the ability to minimally request a byte range with respondWithFD const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); 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');