Skip to content

Commit c48f99a

Browse files
committed
test: update rebuild debounce times to reduce flakiness
1 parent 84684f6 commit c48f99a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/angular_devkit/build_angular/src/browser/specs/unused-files-warning_spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ describe('Browser Builder unused files warnings', () => {
178178

179179
await run.output
180180
.pipe(
181-
debounceTime(1000),
181+
// Same time as the rebuild specs
182+
debounceTime(3000),
182183
tap(buildEvent => {
183184
expect(buildEvent.success).toBe(true);
184185

packages/angular_devkit/build_angular/src/browser/specs/web-worker_spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ describe('Browser Builder Web Worker support', () => {
147147
const { run } = await timer(1000).pipe(
148148
switchMap(() => architect.scheduleTarget(target, overrides)),
149149
switchMap(run => run.output.pipe(map(output => ({ run, output })))),
150-
debounceTime(500),
150+
// Same time as the rebuild specs
151+
debounceTime(3000),
151152
tap(({ output }) => expect(output.success).toBe(true, 'build should succeed')),
152153
tap(() => {
153154
switch (phase) {

0 commit comments

Comments
 (0)