Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f5f44 commit c6fb469Copy full SHA for c6fb469
cli/ssh_test.go
@@ -274,6 +274,10 @@ func TestSSH(t *testing.T) {
274
assert.NoError(t, err, "ssh command failed")
275
})
276
277
+ // Wait for the prompt or any output really to indicate the command has
278
+ // started and accepting input on stdin.
279
+ _ = pty.Peek(ctx, 1)
280
+
281
// Ensure that SSH_AUTH_SOCK is set.
282
// Linux: /tmp/auth-agent3167016167/listener.sock
283
// macOS: /var/folders/ng/m1q0wft14hj0t3rtjxrdnzsr0000gn/T/auth-agent3245553419/listener.sock
0 commit comments