Browse Source

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 <luigipinca@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
v9.x-staging
Nigel Kibodeaux 7 years ago
committed by Rich Trott
parent
commit
87ee0b640e
  1. 3
      test/parallel/test-http-get-pipeline-problem.js

3
test/parallel/test-http-get-pipeline-problem.js

@ -24,6 +24,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');
@ -32,7 +33,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}`);

Loading…
Cancel
Save