CleanupRegistry's catch-all was masking every kind of teardown error, not just the intended "resource already gone" 404. A backend returning 500 on delete would leak orphans run after run without ever surfacing. Now treat 2xx and 404 as success, log any other status (and any thrown network error) to stderr with the resource label, and keep running the remaining items. The suite stays best-effort but no longer hides accumulating leaks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.2 KiB
2.2 KiB