From bcd818af2a19e20e284812b9a922a43b4f4cb77f Mon Sep 17 00:00:00 2001 From: Sascha Tandel Date: Mon, 6 Nov 2017 14:32:49 +0000 Subject: [PATCH] test: replace `common.fixturesDir` usage Use `common/fixtures` module instead in test-http2-client-upload.js PR-URL: https://github.com/nodejs/node/pull/16800 Reviewed-By: Colin Ihrig Reviewed-By: Anatoli Papirovski Reviewed-By: Gireesh Punathil Reviewed-By: Rich Trott --- test/parallel/test-http2-client-upload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http2-client-upload.js b/test/parallel/test-http2-client-upload.js index c9c6ebaa7a2236..cfba97696ce227 100644 --- a/test/parallel/test-http2-client-upload.js +++ b/test/parallel/test-http2-client-upload.js @@ -8,9 +8,9 @@ if (!common.hasCrypto) const assert = require('assert'); const http2 = require('http2'); const fs = require('fs'); -const path = require('path'); +const fixtures = require('../common/fixtures'); -const loc = path.join(common.fixturesDir, 'person.jpg'); +const loc = fixtures.path('person.jpg'); let fileData; assert(fs.existsSync(loc));