From d98c1fb0b6457c2259824ec0681d8809d9e1f85b Mon Sep 17 00:00:00 2001 From: Patrick Pircher Date: Sat, 14 Dec 2024 13:21:20 +0100 Subject: [PATCH] Update v2-addon-dev-watch-test.ts --- tests/scenarios/v2-addon-dev-watch-test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/scenarios/v2-addon-dev-watch-test.ts b/tests/scenarios/v2-addon-dev-watch-test.ts index 114152a3f4..1e4939b4ea 100644 --- a/tests/scenarios/v2-addon-dev-watch-test.ts +++ b/tests/scenarios/v2-addon-dev-watch-test.ts @@ -372,10 +372,9 @@ Scenarios.fromProject(() => baseV2Addon()) // to guess for how long it'll take for the file system to update our file. // // the `stat` is measured in `ms`, so it's still pretty fast - await Promise.all([ - fs.rm(path.join(addon.dir, 'src/components/demo.js')), - fs.rm(path.join(addon.dir, 'src/components/demo.hbs')), - ]); + + void fs.rm(path.join(addon.dir, 'src/components/demo.js')); + void fs.rm(path.join(addon.dir, 'src/components/demo.hbs')); await aBit(150); await watcher?.nextBuild(); await aBit(150); @@ -405,5 +404,5 @@ Scenarios.fromProject(() => baseV2Addon()) }); function aBit(ms: number) { - return new Promise(resolve => setTimeout(resolve, ms)); + return new Promise(resolve => setTimeout(resolve, ms * 0)); }