mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
test: replace fixturesDir with fixtures methods
PR-URL: https://github.com/nodejs/node/pull/15833 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
1 parent
8e7ca5db8d
commit
6f6b2cb7b7
1 file changed
+2
-2
@@ -4,8 +4,8 @@
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto)
|
||||
common.skip('missing crypto');
|
||||
const fixtures = require('../common/fixtures');
|
||||
const http2 = require('http2');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const {
|
||||
@@ -30,7 +30,7 @@ const types = {
|
||||
symbol: Symbol('test')
|
||||
};
|
||||
|
||||
const fname = path.resolve(common.fixturesDir, 'elipses.txt');
|
||||
const fname = fixtures.path('elipses.txt');
|
||||
const fd = fs.openSync(fname, 'r');
|
||||
|
||||
const server = http2.createServer();
|
||||
|
||||
Reference in new issue
Block a user