test: replace common.fixtureDir with fixtures
PR-URL: https://github.com/nodejs/node/pull/15816 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
28e6cab52e
commit
7245e852f2
@ -3,6 +3,7 @@
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto)
|
||||
common.skip('missing crypto');
|
||||
const fixtures = require('../common/fixtures');
|
||||
const assert = require('assert');
|
||||
const http2 = require('http2');
|
||||
const fs = require('fs');
|
||||
@ -10,7 +11,7 @@ const path = require('path');
|
||||
|
||||
// piping should work as expected with createWriteStream
|
||||
|
||||
const loc = path.join(common.fixturesDir, 'person.jpg');
|
||||
const loc = fixtures.path('person.jpg');
|
||||
const fn = path.join(common.tmpDir, 'http2pipe.jpg');
|
||||
common.refreshTmpDir();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user