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

Flush the stale inventory response before asserting its absence in CleanupStage

[._.]/ Adam Eivy528d2fe39694
diff --git a/client/src/components/musicVideo/stages/CleanupStage.test.jsx b/client/src/components/musicVideo/stages/CleanupStage.test.jsx
index 16059a7182..3a39bb5db7 100644
--- a/client/src/components/musicVideo/stages/CleanupStage.test.jsx
+++ b/client/src/components/musicVideo/stages/CleanupStage.test.jsx
@@ -73,7 +73,10 @@ describe('production cleanup', () => {
const { rerender } = render(<CleanupStage board={{ project: { id: 'old-project' } }} />);
rerender(<CleanupStage board={{ project: { id: 'new-project' } }} />);
await screen.findByText('Superseded — safe to remove');
- resolveOld({ finals: [{ id: 'wrong', bytes: 100, reason: 'Old project' }], segments: { stale: [], unusedLooks: [] } });
- await waitFor(() => expect(screen.queryByText('Kept: Old project')).not.toBeInTheDocument());
+ await act(async () => {
+ resolveOld({ finals: [{ id: 'wrong', bytes: 100, reason: 'Old project' }], segments: { stale: [], unusedLooks: [] } });
+ });
+ expect(screen.getByText('Superseded — safe to remove')).toBeInTheDocument();
+ expect(screen.queryByText('Kept: Old project')).not.toBeInTheDocument();
});
});