Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

test: wait for store-deletion side-effect in research failure paths

2 months ago

2f0d8aa
Authored
Max Weinbach7/7/2026, 2:21:35 PM
cleanupTerminalState (which deletes the file-search store) runs strictly
AFTER the status→failed persist that the test's waitFor observes, so
asserting the delete synchronously right after was a latent race — it passed
in isolation but lost the race under full-suite CPU contention. Wait for the
delete mock call itself. Pre-existing structure (identical on main); surfaced
by the added platform test files shifting suite timing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Parent6590333

1 file changed
  • test/research/research.service.followup.test.ts+13−0