Skip to content

Commit 712098f

Browse files
authored
test(agent): Increase the time to wait for agent reachable (#7245)
1 parent 501dfee commit 712098f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

agent/agent_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,9 @@ func setupAgent(t *testing.T, metadata agentsdk.Manifest, ptyTimeout time.Durati
17781778
t.Cleanup(func() {
17791779
_ = agentConn.Close()
17801780
})
1781-
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium)
1781+
// Ideally we wouldn't wait too long here, but sometimes the the
1782+
// networking needs more time to resolve itself.
1783+
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
17821784
defer cancel()
17831785
if !agentConn.AwaitReachable(ctx) {
17841786
t.Fatal("agent not reachable")

0 commit comments

Comments
 (0)