You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: restore stdout via a deferred finish so a failed capture cannot wedge the run
The stdout capture around the seeded-arm pack restored the real stdout
only on the normal return path; a t.Fatal or panic inside the window
would leave os.Stdout on an unread pipe and block every later write once
the pipe filled, hanging the run silently. Register an idempotent finish
func via defer that restores stdout, closes the write end, and joins the
reader goroutine on every exit path.
0 commit comments