diff --git a/test/parallel/test-file-read-noexist.js b/test/parallel/test-file-read-noexist.js index 8ffbdeb2d149aa..7293113f22a1a0 100644 --- a/test/parallel/test-file-read-noexist.js +++ b/test/parallel/test-file-read-noexist.js @@ -21,11 +21,11 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); -const path = require('path'); const fs = require('fs'); -const filename = path.join(common.fixturesDir, 'does_not_exist.txt'); +const filename = fixtures.path('does_not_exist.txt'); fs.readFile(filename, 'latin1', common.mustCall(function(err, content) { assert.ok(err); assert.strictEqual(err.code, 'ENOENT');