From 30c53188b8ff7d674491d3f4c85627001e258b55 Mon Sep 17 00:00:00 2001 From: Charlie Duong Date: Fri, 6 Oct 2017 09:43:20 -0700 Subject: [PATCH] test: replaced common.fixturesDir usage in http2-respond-file-push test --- test/parallel/test-http2-respond-file-push.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-http2-respond-file-push.js b/test/parallel/test-http2-respond-file-push.js index ed8c6bbd01866b..ee3d72e62d1839 100644 --- a/test/parallel/test-http2-respond-file-push.js +++ b/test/parallel/test-http2-respond-file-push.js @@ -3,6 +3,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'); @@ -14,7 +17,7 @@ const { HTTP2_HEADER_LAST_MODIFIED } = http2.constants; -const fname = path.resolve(common.fixturesDir, 'elipses.txt'); +const fname = fixtures.path('elipses.txt'); const data = fs.readFileSync(fname); const stat = fs.statSync(fname); const fd = fs.openSync(fname, 'r');