mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
chore: skip reconnecting pty scale tests (#5908)
* fix: close reconnecting pty conn when exiting agent Fixes https://github.com/coder/coder/actions/runs/4038282899/jobs/6942170850 * Fix conpty * Fix contrib * Skip runner tests for being flakes * Fix gpg key test * Fix golden files * Fix comments
This commit is contained in:
+4
-3
@@ -433,9 +433,10 @@ func runRemoteSSH(sshClient *gossh.Client, stdin io.Reader, cmd string) ([]byte,
|
||||
|
||||
stderr := bytes.NewBuffer(nil)
|
||||
sess.Stdin = stdin
|
||||
sess.Stderr = stderr
|
||||
|
||||
out, err := sess.Output(cmd)
|
||||
// On fish, this was outputting to stderr instead of stdout.
|
||||
// The tests pass differently on different Linux machines,
|
||||
// so it's best we capture the output of both.
|
||||
out, err := sess.CombinedOutput(cmd)
|
||||
if err != nil {
|
||||
return out, xerrors.Errorf(
|
||||
"`%s` failed: stderr: %s\n\nstdout: %s:\n\n%w",
|
||||
|
||||
Reference in New Issue
Block a user