mirror of
https://github.com/turbot/steampipe.git
synced 2026-04-18 10:00:10 -04:00
Changes: 1. Renamed TestQueryContextLeakage -> TestContextCancellationTiming - The test was checking cancellation timing, not memory leaks - Updated comments to reflect actual purpose 2. Increased timeout from 1ms to 100ms - 1ms is too aggressive for CI runners under load - 100ms still catches real deadlocks while avoiding flakiness - Added detailed comments explaining the timeout choice 3. Added TestNoGoroutineLeaks using goleak - Properly tests for actual resource leaks (goroutines) - More reliable than memory-based leak detection - Uses industry-standard goleak library The original 1ms timeout caused intermittent CI failures on slower runners, as context cancellation involves goroutine scheduling that has no guaranteed sub-millisecond timing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>