Skip to content

Commit 1ba18ed

Browse files
authored
Merge pull request kubernetes-sigs#10211 from fabriziopandini/improve-inmemory-server
🌱 Make in memory API server more tolerant when starting
2 parents a79442a + 912e69b commit 1ba18ed

File tree

1 file changed

+1
-1
lines changed
  • test/infrastructure/inmemory/pkg/server

1 file changed

+1
-1
lines changed

test/infrastructure/inmemory/pkg/server/mux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func (m *WorkloadClustersMux) AddAPIServer(wclName, podName string, caCert *x509
451451

452452
// Wait until the sever is working.
453453
var pollErr error
454-
err = wait.PollUntilContextTimeout(context.TODO(), 10*time.Millisecond, 1*time.Second, true, func(context.Context) (done bool, err error) {
454+
err = wait.PollUntilContextTimeout(context.TODO(), 250*time.Millisecond, 5*time.Second, true, func(context.Context) (done bool, err error) {
455455
d := &net.Dialer{Timeout: 50 * time.Millisecond}
456456
conn, err := tls.DialWithDialer(d, "tcp", wcl.HostPort(), &tls.Config{
457457
InsecureSkipVerify: true, //nolint:gosec // config is used to connect to our own port.

0 commit comments

Comments
 (0)