Skip to content

Commit

Permalink
test: update test logic to fix windows CI
Browse files Browse the repository at this point in the history
Minor changes to the testing setup to fix failures on Windows CI.

(cherry picked from commit 5da0e48)
  • Loading branch information
alan-agius4 committed Sep 24, 2024
1 parent 6a52dcc commit c710539
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/legacy-cli/e2e/tests/build/rebuild-dot-dirname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down Expand Up @@ -52,5 +52,7 @@ export default async function () {
await waitForAnyProcessOutputToMatch(goodRegEx);
} finally {
process.chdir(originalCwd);
await killAllProcesses();
await setTimeout(100);
}
}

0 comments on commit c710539

Please sign in to comment.