diff --git a/test/parallel/test-tick-processor-builtin.js b/test/parallel/test-tick-processor-builtin.js index 8e6a5313deafaa..afe08bdb0b672b 100644 --- a/test/parallel/test-tick-processor-builtin.js +++ b/test/parallel/test-tick-processor-builtin.js @@ -1,6 +1,5 @@ 'use strict'; const common = require('../common'); -const path = require('path'); if (common.isWindows || common.isSunOS || @@ -16,7 +15,7 @@ if (!common.enoughTestCpu) { return; } -const base = require(path.join(common.fixturesDir, 'tick-processor-base.js')); +const base = require('./tick-processor-base.js'); base.runTest({ pattern: /Builtin_DateNow/, diff --git a/test/parallel/test-tick-processor-cpp-core.js b/test/parallel/test-tick-processor-cpp-core.js index 6223808da0c4d9..2bc595e7ff732a 100644 --- a/test/parallel/test-tick-processor-cpp-core.js +++ b/test/parallel/test-tick-processor-cpp-core.js @@ -1,6 +1,5 @@ 'use strict'; const common = require('../common'); -const path = require('path'); if (common.isWindows || common.isSunOS || @@ -16,7 +15,7 @@ if (!common.enoughTestCpu) { return; } -const base = require(path.join(common.fixturesDir, 'tick-processor-base.js')); +const base = require('./tick-processor-base.js'); base.runTest({ pattern: /RunInDebugContext/, diff --git a/test/parallel/test-tick-processor-unknown.js b/test/parallel/test-tick-processor-unknown.js index d1d1f4e63258f4..c886f648be4dc5 100644 --- a/test/parallel/test-tick-processor-unknown.js +++ b/test/parallel/test-tick-processor-unknown.js @@ -1,6 +1,5 @@ 'use strict'; const common = require('../common'); -const path = require('path'); // TODO(mhdawson) Currently the test-tick-processor functionality in V8 // depends on addresses being smaller than a full 64 bits. Aix supports @@ -17,7 +16,7 @@ if (!common.enoughTestCpu) { return; } -const base = require(path.join(common.fixturesDir, 'tick-processor-base.js')); +const base = require('./tick-processor-base.js'); // Unknown checked for to prevent flakiness, if pattern is not found, // then a large number of unknown ticks should be present diff --git a/test/fixtures/tick-processor-base.js b/test/parallel/tick-processor-base.js similarity index 92% rename from test/fixtures/tick-processor-base.js rename to test/parallel/tick-processor-base.js index ca67a0f7e967b4..aff37ba109e141 100644 --- a/test/fixtures/tick-processor-base.js +++ b/test/parallel/tick-processor-base.js @@ -20,7 +20,7 @@ function runTest(test) { }); let ticks = ''; - proc.stdout.on('data', chunk => ticks += chunk); + proc.stdout.on('data', (chunk) => ticks += chunk); // Try to match after timeout setTimeout(() => { @@ -41,7 +41,7 @@ function match(pattern, parent, ticks) { }); let out = ''; - proc.stdout.on('data', chunk => out += chunk); + proc.stdout.on('data', (chunk) => out += chunk); proc.stdout.once('end', () => { proc.once('exit', () => { fs.unlinkSync(LOG_FILE);