Skip to content

Commit

Permalink
Make in memory API server more tolerant when starting
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Feb 28, 2024
1 parent 0f47a19 commit 912e69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/infrastructure/inmemory/pkg/server/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 912e69b

Please sign in to comment.