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)); }