You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cf9206a
Browse filesBrowse the repository at this point in the historyBrowse files
easonLiangWorldedtech
committed
test(task): stop leaking the fixed-task-id record between save-stage tests
The task uuid is mocked to a fixed value, so the ui_messages.json this save writes outlives the test that
created it. The sibling test below removes the whole directory and recreates it, which is the only reason
the leak has not surfaced: with merge = true, any later save that reads its merged output would fold in a
stale record and fail by run order rather than by behavior.
The body now runs in try/finally, removing ui_messages.json and restoring both spies whatever the
assertions do. The spies moved out of the try so the finally can see them.
Local run: 162 passed in Task.spec.ts (the one remaining failure, blocks a truncated write_to_file call
instead of executing it, fails identically at cf5abe6 without this change - local artifact), eslint
clean, no suppression change.
0 commit comments