From 712098fa2b977350617fc1fd9bd8550e4b90af0f Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Fri, 21 Apr 2023 22:40:17 +0300 Subject: [PATCH] test(agent): Increase the time to wait for agent reachable (#7245) --- agent/agent_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/agent/agent_test.go b/agent/agent_test.go index adc85ffe2f..49fbb9f2e7 100644 --- a/agent/agent_test.go +++ b/agent/agent_test.go @@ -1778,7 +1778,9 @@ func setupAgent(t *testing.T, metadata agentsdk.Manifest, ptyTimeout time.Durati t.Cleanup(func() { _ = agentConn.Close() }) - ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitMedium) + // Ideally we wouldn't wait too long here, but sometimes the the + // networking needs more time to resolve itself. + ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong) defer cancel() if !agentConn.AwaitReachable(ctx) { t.Fatal("agent not reachable")