summaryrefslogtreecommitdiff
path: root/internal/askcli/command_complete_uuids.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-28 11:40:59 +0200
committerPaul Buetow <paul@buetow.org>2026-03-28 11:40:59 +0200
commit118170f8f3735a9573a2a72b83d6aa2af63be85a (patch)
tree269f3eabb37bb624799b0ca2a7fe545f83451878 /internal/askcli/command_complete_uuids.go
parent2c1930adf4355b7d0b113f3a2f9573c4f961420e (diff)
fix: prevent integration test task leaks and fix cleanup reliability
Two related issues with the integration test cleanup: 1. deleteTask used the test's context, which could be cancelled if the test had already timed out — causing deferred cleanup to silently fail and leak Taskwarrior tasks across runs. Fixed by using a fresh background context with a short timeout inside deleteTask. 2. No mechanism existed to clean up tasks leaked by previous runs, which could accumulate and pollute subsequent test runs. Added cleanupOrphanedIntegrationTasks() called from TestMain that bulk-deletes all project:hexai +integrationtest pending tasks using taskwarrior's "all" confirmation answer for efficiency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/askcli/command_complete_uuids.go')
0 files changed, 0 insertions, 0 deletions