From 64d3ca8c6f9b8937ac4f718f8c7db5b8649e1590 Mon Sep 17 00:00:00 2001 From: kysnm Date: Fri, 6 Oct 2017 10:03:37 -0700 Subject: [PATCH 1/2] 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'); From b85bdbcf212e9b496c079cab41d333e8efdec806 Mon Sep 17 00:00:00 2001 From: kysnm Date: Thu, 12 Oct 2017 10:01:55 +0900 Subject: [PATCH 2/2] test: align module order --- test/parallel/test-http2-respond-file-fd-range.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http2-respond-file-fd-range.js b/test/parallel/test-http2-respond-file-fd-range.js index bcc64dfb3a5f70..fdf9b5e2cd3b4b 100644 --- a/test/parallel/test-http2-respond-file-fd-range.js +++ b/test/parallel/test-http2-respond-file-fd-range.js @@ -3,9 +3,9 @@ // 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 fixtures = require('../common/fixtures'); const http2 = require('http2'); const assert = require('assert'); const fs = require('fs');