Skip to content

Commit 6c9796d

Browse files
committed
test(@angular-devkit/build-angular): improve resilience of lazy module rebuild test
Rebuild tests that involve file watching can be very flaky on CI. This change adds a debounce time which is also used in the other rebuild tests within the package.
1 parent c2e111c commit 6c9796d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular_devkit/build_angular/src/browser/specs/lazy-module_spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import { Architect } from '@angular-devkit/architect';
1010
import { TestProjectHost } from '@angular-devkit/architect/testing';
1111
import { logging } from '@angular-devkit/core';
12-
import { take, tap, timeout } from 'rxjs/operators';
12+
import { debounceTime, take, tap } from 'rxjs/operators';
1313
import {
1414
browserBuild,
1515
createArchitect,
@@ -117,7 +117,7 @@ describe('Browser Builder lazy modules', () => {
117117
const run = await architect.scheduleTarget(target, overrides);
118118
await run.output
119119
.pipe(
120-
timeout(15000),
120+
debounceTime(3000),
121121
tap(buildEvent => {
122122
buildNumber++;
123123
switch (buildNumber) {

0 commit comments

Comments
 (0)