Skip to content

Commit 7788207

Browse files
NigelKibodeauxtargos
authored andcommitted
test: use fixtures module in test
Instead of using common.fixturesDir, uses the fixtures module in test-http-get-pipeline-problem. PR-URL: #16117 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 37235a3 commit 7788207

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
// after http.globalAgent.maxSockets number of files.
2525
// See https://groups.google.com/forum/#!topic/nodejs-dev/V5fB69hFa9o
2626
const common = require('../common');
27+
const fixtures = require('../common/fixtures');
2728
const assert = require('assert');
2829
const http = require('http');
2930
const fs = require('fs');
@@ -32,7 +33,7 @@ http.globalAgent.maxSockets = 1;
3233

3334
common.refreshTmpDir();
3435

35-
const image = fs.readFileSync(`${common.fixturesDir}/person.jpg`);
36+
const image = fixtures.readSync('/person.jpg');
3637

3738
console.log(`image.length = ${image.length}`);
3839

0 commit comments

Comments
 (0)