Skip to content

Commit

Permalink
test: increase/add debounceTime to reduce flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and vikerman committed Jul 29, 2019
1 parent 168f07e commit 607e6f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ describe('Browser Builder rebuilds', () => {
const run = await architect.scheduleTarget(target, overrides);
await run.output
.pipe(
debounceTime(1000),
tap(result => {
expect(result.success).toBe(true, 'build should succeed');
const hasLazyChunk = host.scopedSync().exists(normalize('dist/lazy-lazy-module.js'));
Expand Down Expand Up @@ -127,7 +128,7 @@ describe('Browser Builder rebuilds', () => {
const run = await architect.scheduleTarget(target, overrides);
await run.output
.pipe(
debounceTime(500),
debounceTime(1000),
tap(buildEvent => expect(buildEvent.success).toBe(true)),
tap(() => host.appendToFile('src/app/app.component.css', ':host { color: blue; }')),
take(2),
Expand Down

0 comments on commit 607e6f7

Please sign in to comment.