Skip to content

Agent Mesh

Update tests/integration/minimal_helpers_test.go

Antonio Ojeac55ddecd8249
diff --git a/tests/integration/minimal_helpers_test.go b/tests/integration/minimal_helpers_test.go
index c0da5af2..9e177bdd 100644
--- a/tests/integration/minimal_helpers_test.go
+++ b/tests/integration/minimal_helpers_test.go
@@ -617,8 +617,9 @@ func waitForControlPlane(t *testing.T, port int) {
var lastErr error
var lastStatus int
+ client := &http.Client{Timeout: 2 * time.Second}
for {
- resp, err := http.Get(fmt.Sprintf("http://127.0.0.1:%d/info", port))
+ resp, err := client.Get(fmt.Sprintf("http://127.0.0.1:%d/info", port))
if err == nil {
lastStatus = resp.StatusCode
_ = resp.Body.Close()