Skip to content

Commit 27e1a92

Browse files
Reduce polling interval for check
1 parent bff5f05 commit 27e1a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/envtest/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func (te *Environment) waitForDefaultNamespace(config *rest.Config) error {
339339
return fmt.Errorf("unable to create client: %w", err)
340340
}
341341
// It shouldn't take longer than 5s for the default namespace to be brought up in etcd
342-
return wait.PollUntilContextTimeout(context.TODO(), time.Millisecond*500, time.Second*5, true, func(ctx context.Context) (bool, error) {
342+
return wait.PollUntilContextTimeout(context.TODO(), time.Millisecond*50, time.Second*5, true, func(ctx context.Context) (bool, error) {
343343
if err = cs.Get(ctx, types.NamespacedName{Name: "default"}, &corev1.Namespace{}); err != nil {
344344
return false, nil //nolint:nilerr
345345
}

0 commit comments

Comments
 (0)