Skip to content

Commit 607e6f7

Browse files
alan-agius4vikerman
authored andcommitted
test: increase/add debounceTime to reduce flakiness
1 parent 168f07e commit 607e6f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular_devkit/build_angular/test/browser/rebuild_spec_large.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ describe('Browser Builder rebuilds', () => {
7777
const run = await architect.scheduleTarget(target, overrides);
7878
await run.output
7979
.pipe(
80+
debounceTime(1000),
8081
tap(result => {
8182
expect(result.success).toBe(true, 'build should succeed');
8283
const hasLazyChunk = host.scopedSync().exists(normalize('dist/lazy-lazy-module.js'));
@@ -127,7 +128,7 @@ describe('Browser Builder rebuilds', () => {
127128
const run = await architect.scheduleTarget(target, overrides);
128129
await run.output
129130
.pipe(
130-
debounceTime(500),
131+
debounceTime(1000),
131132
tap(buildEvent => expect(buildEvent.success).toBe(true)),
132133
tap(() => host.appendToFile('src/app/app.component.css', ':host { color: blue; }')),
133134
take(2),

0 commit comments

Comments
 (0)