From f5b29625b400d5340cc510dca2a43c41b47e007d Mon Sep 17 00:00:00 2001 From: Nigel Kibodeaux Date: Fri, 6 Oct 2017 09:50:17 -0700 Subject: [PATCH] test: use fixtures module in test Instead of using common.fixturesDir, uses the fixtures module in test-http-get-pipeline-problem. PR-URL: https://github.com/nodejs/node/pull/16117 Reviewed-By: Luigi Pinca Reviewed-By: Daijiro Wachi Reviewed-By: Rich Trott --- test/parallel/test-http-get-pipeline-problem.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-http-get-pipeline-problem.js b/test/parallel/test-http-get-pipeline-problem.js index b0a991f448dea7..705f3742192ea0 100644 --- a/test/parallel/test-http-get-pipeline-problem.js +++ b/test/parallel/test-http-get-pipeline-problem.js @@ -3,6 +3,7 @@ // after http.globalAgent.maxSockets number of files. // See https://groups.google.com/forum/#!topic/nodejs-dev/V5fB69hFa9o const common = require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const http = require('http'); const fs = require('fs'); @@ -11,7 +12,7 @@ http.globalAgent.maxSockets = 1; common.refreshTmpDir(); -const image = fs.readFileSync(`${common.fixturesDir}/person.jpg`); +const image = fixtures.readSync('/person.jpg'); console.log(`image.length = ${image.length}`);