summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-respond-file-fd-range.js
diff options
context:
space:
mode:
authorkysnm <tokyoincidents.g@gmail.com>2017-10-06 10:03:37 -0700
committerJames M Snell <jasnell@gmail.com>2017-10-12 18:34:50 -0700
commit9943cb2950f392bea45f7e1dbe0da53385af2188 (patch)
treee0da7b8aadf4bfbc7c7cbcde78088b3caba39909 /test/parallel/test-http2-respond-file-fd-range.js
parent0e1455b90959024ae86207eb0bb67d0ab5f264cc (diff)
downloadandroid-node-v8-9943cb2950f392bea45f7e1dbe0da53385af2188.tar.gz
android-node-v8-9943cb2950f392bea45f7e1dbe0da53385af2188.tar.bz2
android-node-v8-9943cb2950f392bea45f7e1dbe0da53385af2188.zip
test: fixtures in test-http2-respond-file-fd-range
PR-URL: https://github.com/nodejs/node/pull/15878 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-http2-respond-file-fd-range.js')
-rw-r--r--test/parallel/test-http2-respond-file-fd-range.js4
1 files 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 45d69a0598..fdf9b5e2cd 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');