Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: finish animatic workspace cleanup after listener failure (#13239)

Adam Eivya5b8e6a2294d
diff --git a/server/services/musicVideo/animaticCapture.browser.test.js b/server/services/musicVideo/animaticCapture.browser.test.js
index 4e8db2ad96..2a6c16671c 100644
--- a/server/services/musicVideo/animaticCapture.browser.test.js
+++ b/server/services/musicVideo/animaticCapture.browser.test.js
@@ -37,9 +37,10 @@ const errors = [];
const setup = createOwnedFixtureSetup({ cleanup: async () => {
// A failed browser close must not leave the HTTP listener open.
const outcomes = await Promise.allSettled([fixture?.close(), server && new Promise((done, reject) => server.close(error => error ? reject(error) : done()))]);
+ // The generated workspace is independent of the owned browser profile.
+ outcomes.push(...await Promise.allSettled([dir && rm(dir, { recursive: true, force: true })]));
const failures = outcomes.filter(outcome => outcome.status === 'rejected').map(outcome => outcome.reason);
if (failures.length) throw new AggregateError(failures, 'Animatic fixture cleanup failed');
- if (dir) await rm(dir, { recursive: true, force: true });
} });
afterAll(() => setup.close());