Skip to content

Commit

Permalink
test: delay killAllProcesses in serve test
Browse files Browse the repository at this point in the history
This was causing `Error: The service was stopped: write EPIPE` which caused the test to fail on Node.js 18.
  • Loading branch information
alan-agius4 committed Dec 13, 2023
1 parent 8df2043 commit 5370b03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/legacy-cli/e2e/tests/basic/serve.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import { setTimeout } from 'node:timers/promises';
import { killAllProcesses } from '../../utils/process';
import { ngServe } from '../../utils/project';

export default async function () {
// Serve works without HMR
const noHmrPort = await ngServe('--no-hmr');
await verifyResponse(noHmrPort);

await setTimeout(500);
await killAllProcesses();

// Serve works with HMR
Expand Down

0 comments on commit 5370b03

Please sign in to comment.