From c7105395fe2df06fd6c3c31d99a1cb0dc4f04238 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 24 Sep 2024 18:01:14 +0000 Subject: [PATCH] test: update test logic to fix windows CI Minor changes to the testing setup to fix failures on Windows CI. (cherry picked from commit 5da0e480c7d4f9bb34484746afe4a3e92af16eb8) --- tests/legacy-cli/e2e/tests/build/rebuild-dot-dirname.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/legacy-cli/e2e/tests/build/rebuild-dot-dirname.ts b/tests/legacy-cli/e2e/tests/build/rebuild-dot-dirname.ts index 3a24ca0bcab5..b3485ec495e8 100644 --- a/tests/legacy-cli/e2e/tests/build/rebuild-dot-dirname.ts +++ b/tests/legacy-cli/e2e/tests/build/rebuild-dot-dirname.ts @@ -2,7 +2,7 @@ import { setTimeout } from 'node:timers/promises'; import { getGlobalVariable } from '../../utils/env'; import { appendToFile, createDir, rimraf } from '../../utils/fs'; import { installWorkspacePackages } from '../../utils/packages'; -import { ng, waitForAnyProcessOutputToMatch } from '../../utils/process'; +import { killAllProcesses, ng, waitForAnyProcessOutputToMatch } from '../../utils/process'; import { ngServe, updateJsonFile, useSha } from '../../utils/project'; const goodRegEx = getGlobalVariable('argv')['esbuild'] @@ -52,5 +52,7 @@ export default async function () { await waitForAnyProcessOutputToMatch(goodRegEx); } finally { process.chdir(originalCwd); + await killAllProcesses(); + await setTimeout(100); } }