From 912e69b639dc892f01adc2b16262a804a190223b Mon Sep 17 00:00:00 2001 From: fabriziopandini Date: Wed, 28 Feb 2024 18:55:19 +0100 Subject: [PATCH] Make in memory API server more tolerant when starting --- test/infrastructure/inmemory/pkg/server/mux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/infrastructure/inmemory/pkg/server/mux.go b/test/infrastructure/inmemory/pkg/server/mux.go index 8d47d273af81..91c11fe543e1 100644 --- a/test/infrastructure/inmemory/pkg/server/mux.go +++ b/test/infrastructure/inmemory/pkg/server/mux.go @@ -451,7 +451,7 @@ func (m *WorkloadClustersMux) AddAPIServer(wclName, podName string, caCert *x509 // Wait until the sever is working. var pollErr error - err = wait.PollUntilContextTimeout(context.TODO(), 10*time.Millisecond, 1*time.Second, true, func(context.Context) (done bool, err error) { + err = wait.PollUntilContextTimeout(context.TODO(), 250*time.Millisecond, 5*time.Second, true, func(context.Context) (done bool, err error) { d := &net.Dialer{Timeout: 50 * time.Millisecond} conn, err := tls.DialWithDialer(d, "tcp", wcl.HostPort(), &tls.Config{ InsecureSkipVerify: true, //nolint:gosec // config is used to connect to our own port.