Skip to content

Commit 5370b03

Browse files
committed
test: delay killAllProcesses in serve test
This was causing `Error: The service was stopped: write EPIPE` which caused the test to fail on Node.js 18.
1 parent 8df2043 commit 5370b03

File tree

1 file changed

+3
-0
lines changed
  • tests/legacy-cli/e2e/tests/basic

1 file changed

+3
-0
lines changed

tests/legacy-cli/e2e/tests/basic/serve.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import { setTimeout } from 'node:timers/promises';
12
import { killAllProcesses } from '../../utils/process';
23
import { ngServe } from '../../utils/project';
34

45
export default async function () {
56
// Serve works without HMR
67
const noHmrPort = await ngServe('--no-hmr');
78
await verifyResponse(noHmrPort);
9+
10+
await setTimeout(500);
811
await killAllProcesses();
912

1013
// Serve works with HMR

0 commit comments

Comments
 (0)