Skip to content

Commit

Permalink
test: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Sep 20, 2024
1 parent becc107 commit 462fd34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-runner-run-watch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ async function testWatch(
if (runnerCwd) args.push('--cwd', runnerCwd);
if (isolation) args.push('--isolation', isolation);
const child = spawn(process.execPath,
args,
{ encoding: 'utf8', stdio: 'pipe', cwd });
args,
{ encoding: 'utf8', stdio: 'pipe', cwd });
let stdout = '';
let currentRun = '';
const runs = [];
Expand Down Expand Up @@ -104,9 +104,9 @@ async function testWatch(
const fileToRenamePath = tmpdir.resolve(fileToUpdate);
const newFileNamePath = tmpdir.resolve(`test-renamed-${fileToUpdate}`);
const interval = setInterval(() => {
renameSync(fileToRenamePath, newFileNamePath), common.platformTimeout(1000)
renameSync(fileToRenamePath, newFileNamePath);
clearInterval(interval);
});
}, common.platformTimeout(1000));
await ran2.promise;
runs.push(currentRun);
child.kill();
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-runner-watch-mode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function testWatch({
const fileToRenamePath = tmpdir.resolve(fileToUpdate);
const newFileNamePath = tmpdir.resolve(`test-renamed-${fileToUpdate}`);
const interval = setInterval(() => {
renameSync(fileToRenamePath, newFileNamePath)
renameSync(fileToRenamePath, newFileNamePath);
clearInterval(interval);
}, common.platformTimeout(1000));
await ran2.promise;
Expand Down

0 comments on commit 462fd34

Please sign in to comment.