mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
test: lower debounceTime
in browser builder tests
The current `debounceTime` values are unnecessarily high, resulting in slow test execution. Reducing these times will improve efficiency.
This commit is contained in:
parent
3b5afbb52c
commit
4d88743b02
@ -98,7 +98,7 @@ describe('Browser Builder lazy modules', () => {
|
||||
const run = await architect.scheduleTarget(target, overrides);
|
||||
await run.output
|
||||
.pipe(
|
||||
debounceTime(1500),
|
||||
debounceTime(1000),
|
||||
tap((buildEvent) => {
|
||||
buildNumber++;
|
||||
switch (buildNumber) {
|
||||
|
@ -22,7 +22,7 @@ describe('Browser Builder rebuilds', () => {
|
||||
const target = { project: 'app', target: 'build' };
|
||||
// Rebuild tests are especially sensitive to time between writes due to file watcher
|
||||
// behaviour. Give them a while.
|
||||
const rebuildDebounceTime = 3000;
|
||||
const rebuildDebounceTime = 1000;
|
||||
let architect: Architect;
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@ -147,7 +147,7 @@ describe('Browser Builder service worker', () => {
|
||||
|
||||
await run.output
|
||||
.pipe(
|
||||
debounceTime(3000),
|
||||
debounceTime(1000),
|
||||
tap((buildEvent) => {
|
||||
expect(buildEvent.success).toBeTrue();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user