mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #465] [MERGED] Global output defer #548
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#548
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/465
Author: @cursor[bot]
Created: 2/9/2026
Status: ✅ Merged
Merged: 2/10/2026
Merged by: @rudrankriyam
Base:
audit/fix-security-and-test-gaps← Head:cursor/global-output-defer-1b3e📝 Commits (1)
8df2015Fix missing defer restoration for global stdout/stderr swap in test helpers📊 Changes
2 files changed (+52 additions, -24 deletions)
View changed files
📝
cmd/run_additional_test.go(+26 -12)📝
internal/cli/auth/auth_test.go(+26 -12)📄 Description
Refactor
captureCommandOutputandcaptureAuthOutputto usedeferfor stdout/stderr restoration and concurrent goroutines for pipe reading.This fixes a bug where
os.Stdout/os.Stderrmight not be restored ift.Fatalf(which triggersruntime.Goexit) is called within the captured function, leading to corrupted test output. It also prevents potential deadlocks by reading pipe output concurrently.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.