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

Commit6ba5521

Browse files
authored
test: fix timeout on TestServer_X11_EvictionLRU (#19217)
fixescoder/internal#878On my dev system it takes 900ms, but looking at timestamps in CI it took25 seconds. Bumping timeout to 60s.Also fixes the segfault.
1 parent2851d9f commit6ba5521

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎agent/agentssh/x11_test.go‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func TestServer_X11_EvictionLRU(t *testing.T) {
135135
t.Skip("X11 forwarding is only supported on Linux")
136136
}
137137

138-
ctx:=testutil.Context(t,testutil.WaitLong)
138+
ctx:=testutil.Context(t,testutil.WaitSuperLong)
139139
logger:=testutil.Logger(t)
140140
fs:=afero.NewMemMapFs()
141141

@@ -238,7 +238,9 @@ func TestServer_X11_EvictionLRU(t *testing.T) {
238238
payload:="hello world"
239239
gofunc() {
240240
conn,err:=inproc.Dial(ctx,testutil.NewAddr("tcp",fmt.Sprintf("localhost:%d",agentssh.X11StartPort+agentssh.X11DefaultDisplayOffset)))
241-
assert.NoError(t,err)
241+
if!assert.NoError(t,err) {
242+
return
243+
}
242244
_,err=conn.Write([]byte(payload))
243245
assert.NoError(t,err)
244246
_=conn.Close()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp