Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc6fb469

Browse files
authored
test: Improve TestSSH/ForwardAgent stability on macOS (#5745)
1 parent99f5f44 commitc6fb469

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎cli/ssh_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ func TestSSH(t *testing.T) {
274274
assert.NoError(t,err,"ssh command failed")
275275
})
276276

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+
277281
// Ensure that SSH_AUTH_SOCK is set.
278282
// Linux: /tmp/auth-agent3167016167/listener.sock
279283
// macOS: /var/folders/ng/m1q0wft14hj0t3rtjxrdnzsr0000gn/T/auth-agent3245553419/listener.sock

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp