- Notifications
You must be signed in to change notification settings - Fork928
fix(agent): Close stdin and stdout separately to fix pty output loss#6862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -350,15 +350,8 @@ func TestAgent_Session_TTY_Hushlogin(t *testing.T) { | ||
func TestAgent_Session_TTY_FastCommandHasOutput(t *testing.T) { | ||
t.Parallel() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This might be risky (flakey CI), but maybe we should see if it's a problem on Windows? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Agreed! | ||
// This test is here to prevent regressions where quickly executing | ||
// commands (with TTY) don'tsync their output to the SSH session. | ||
// | ||
// See: https://github.com/coder/coder/issues/6656 | ||
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong) | ||
@@ -404,20 +397,13 @@ func TestAgent_Session_TTY_FastCommandHasOutput(t *testing.T) { | ||
func TestAgent_Session_TTY_HugeOutputIsNotLost(t *testing.T) { | ||
t.Parallel() | ||
// This test is here to prevent regressions where a command (with or | ||
// without) a large amount of output would not be fully copied to the | ||
// SSH session. On unix systems, this was fixed by duplicating the file | ||
// descriptor of the PTY master and using it for copying the output. | ||
// | ||
// See: https://github.com/coder/coder/issues/6656 | ||
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong) | ||
defer cancel() | ||
//nolint:dogsled | ||