From a1d9e05d7d9d066c35823d115d172658d3a23333 Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Tue, 18 Mar 2025 18:52:35 +0100 Subject: [PATCH] refactor(dev-infra): disable progressBar test (#60448) This test often (but inconsitantly) timeouts with ``` Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL) ``` We suspect a racing condition within the RouterTestingHarness. Until this has been investigated, we'll disable this test. PR Close #60448 --- .../core/layout/progress-bar/progress-bar.component.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adev/src/app/core/layout/progress-bar/progress-bar.component.spec.ts b/adev/src/app/core/layout/progress-bar/progress-bar.component.spec.ts index fdcaf4e6b83..f288ef2c85d 100644 --- a/adev/src/app/core/layout/progress-bar/progress-bar.component.spec.ts +++ b/adev/src/app/core/layout/progress-bar/progress-bar.component.spec.ts @@ -25,7 +25,10 @@ describe('ProgressBarComponent', () => { fixture.detectChanges(); }); - it('should call progressBar.complete() on route change', async () => { + // This test often timeouts + // We suspect a racing condition inside the RouterTestingHarness. + // Until this has been investigated, we will skip this test. + xit('should call progressBar.complete() on route change', async () => { const progressBar = component.progressBar(); const progressBarCompleteSpy = spyOn(progressBar, 'complete');