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>
This commit is contained in:
parent
3784b2d839
commit
87ee0b640e
@ -24,6 +24,7 @@
|
|||||||
// after http.globalAgent.maxSockets number of files.
|
// after http.globalAgent.maxSockets number of files.
|
||||||
// See https://groups.google.com/forum/#!topic/nodejs-dev/V5fB69hFa9o
|
// See https://groups.google.com/forum/#!topic/nodejs-dev/V5fB69hFa9o
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
|
const fixtures = require('../common/fixtures');
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const http = require('http');
|
const http = require('http');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
@ -32,7 +33,7 @@ http.globalAgent.maxSockets = 1;
|
|||||||
|
|
||||||
common.refreshTmpDir();
|
common.refreshTmpDir();
|
||||||
|
|
||||||
const image = fs.readFileSync(`${common.fixturesDir}/person.jpg`);
|
const image = fixtures.readSync('/person.jpg');
|
||||||
|
|
||||||
console.log(`image.length = ${image.length}`);
|
console.log(`image.length = ${image.length}`);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user