From: Nizamudeen A Date: Wed, 8 Jul 2026 05:21:50 +0000 (+0530) Subject: mgr/dashboard: teardown http requests for feature-toggle X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F69766%2Fhead;p=ceph.git 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 --- 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(); });