Files
steampipe/pkg/query/queryresult
Nathan Wallace 94633db3f9 Add test demonstrating StreamRow/Close race condition
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>
2025-11-16 16:19:53 -05:00
..
2024-09-27 18:14:28 +05:30