mirror of
https://github.com/turbot/steampipe.git
synced 2026-03-23 04:00:11 -04:00
Adds TestResult_CloseAfterPartialRead to demonstrate issue #4790 where StreamRow() can panic with "send on closed channel" when called concurrently with Close(). The test creates a scenario where: - One goroutine continuously streams rows - Another goroutine reads a few rows then calls Close() This exposes the race condition where Close() can close the channel while StreamRow() is attempting to send, causing a panic. Temporarily removed synchronization from Result struct to demonstrate the bug. Test FAILS with panic as expected. Relates to #4790 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>