mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #464] [CLOSED] Test pipe draining #547
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/464
Author: @cursor[bot]
Created: 2/9/2026
Status: ❌ Closed
Base:
audit/fix-security-and-test-gaps← Head:cursor/test-pipe-draining-26e8📝 Commits (1)
cb01d7cFix pipe capture helpers to drain concurrently, preventing potential deadlock📊 Changes
2 files changed (+32 additions, -20 deletions)
View changed files
📝
cmd/run_additional_test.go(+16 -10)📝
internal/cli/auth/auth_test.go(+16 -10)📄 Description
Refactor
captureCommandOutputandcaptureAuthOutputto concurrently drain pipes, preventing potential deadlocks in tests.The original implementation could lead to a deadlock if the function under test (
fn()) wrote enough data to fill the OS pipe buffer, as the pipes were only read afterfn()completed. This change introduces goroutines to drain the pipes concurrently, matching the pattern incompletion_test.go.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.