From ca4e549410d0e638a12b8d56eed59939e1ff9790 Mon Sep 17 00:00:00 2001 From: jacjam Date: Fri, 6 Oct 2017 10:34:26 -0700 Subject: [PATCH] test: upgrade from fixturesDir to fixtures.path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The common/fixtures module provides convenience methods for working with files in the test/fixtures directory. PR-URL: https://github.com/nodejs/node/pull/15960 Reviewed-By: Daijiro Wachi Reviewed-By: Benjamin Gruenbaum Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen --- test/parallel/test-http2-respond-file-204.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-respond-file-204.js b/test/parallel/test-http2-respond-file-204.js index 13818d0243bfb3..8181dbb317dab2 100644 --- a/test/parallel/test-http2-respond-file-204.js +++ b/test/parallel/test-http2-respond-file-204.js @@ -3,16 +3,16 @@ 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 { HTTP2_HEADER_CONTENT_TYPE, HTTP2_HEADER_STATUS } = http2.constants; -const fname = path.resolve(common.fixturesDir, 'elipses.txt'); +const fname = fixtures.path('elipses.txt'); const server = http2.createServer(); server.on('stream', (stream) => {