From 17baacda7fc1fbf1f26fa8816a9afef49b64caa9 Mon Sep 17 00:00:00 2001 From: Pietro Marchini Date: Sun, 22 Sep 2024 21:29:04 +0200 Subject: [PATCH] test: lint --- test/parallel/test-runner-run-watch.mjs | 8 ++++---- test/parallel/test-runner-watch-mode.mjs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-runner-run-watch.mjs b/test/parallel/test-runner-run-watch.mjs index 9ad9eaf1b60e4b..8ccc4646de2a26 100644 --- a/test/parallel/test-runner-run-watch.mjs +++ b/test/parallel/test-runner-run-watch.mjs @@ -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 = []; @@ -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(); diff --git a/test/parallel/test-runner-watch-mode.mjs b/test/parallel/test-runner-watch-mode.mjs index 9dbac7faa6dd9c..26862fceb96c78 100644 --- a/test/parallel/test-runner-watch-mode.mjs +++ b/test/parallel/test-runner-watch-mode.mjs @@ -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;