]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: teardown http requests for feature-toggle 69766/head
authorNizamudeen A <nia@redhat.com>
Wed, 8 Jul 2026 05:21:50 +0000 (10:51 +0530)
committerNizamudeen A <nia@redhat.com>
Wed, 8 Jul 2026 05:21:50 +0000 (10:51 +0530)
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 <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/feature-toggles.service.spec.ts

index ddb8888512ae182191dfcd6d0af3a07ea586e8dd..996e7fe32175d503c0a9e7eab4e8e0333049d1f4 100644 (file)
@@ -19,6 +19,7 @@ describe('FeatureTogglesService', () => {
   });
 
   afterEach(() => {
+    httpTesting.match(() => true).forEach((req) => req.flush({}));
     httpTesting.verify();
   });