From fcbbca8949a97aa73bf59f318acd449f103b415c Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Wed, 8 Jul 2026 10:51:50 +0530 Subject: [PATCH] mgr/dashboard: teardown http requests for feature-toggle angular 19.2.latest is aggressively tearing down the test env which forces the active rxjs timer to emit one execution as it collapses which produces a ghost http in the case of request wrapped in the timer service. so for now flushing all the requests manually to prevent it Fixes: https://tracker.ceph.com/issues/77729 Signed-off-by: Nizamudeen A --- .../src/app/shared/services/feature-toggles.service.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/feature-toggles.service.spec.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/feature-toggles.service.spec.ts index ddb8888512a..996e7fe3217 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/feature-toggles.service.spec.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/feature-toggles.service.spec.ts @@ -19,6 +19,7 @@ describe('FeatureTogglesService', () => { }); afterEach(() => { + httpTesting.match(() => true).forEach((req) => req.flush({})); httpTesting.verify(); }); -- 2.47.3