Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ignore command error
  • Loading branch information
mafredri committed Jan 19, 2024
commit da07f1d7d91962dd3b33ca3833b33e117dd252da
3 changes: 2 additions & 1 deletion cli/ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,8 @@ func TestSSH(t *testing.T) {
pty := ptytest.New(t).Attach(inv)
inv.Stderr = pty.Output()

clitest.Start(t, inv.WithContext(ctx))
w := clitest.StartWithWaiter(t, inv.WithContext(ctx))
defer w.Wait() // We don't care about any exit error (exit code 255: SSH connection ended unexpectedly).

// Since something was output, it should be safe to write input.
// This could show a prompt or "running startup scripts", so it's
Expand Down