Skip to content

Commit

Permalink
Reduce polling interval for check
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-innis committed Jan 31, 2024
1 parent bff5f05 commit 27e1a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/envtest/server.go
Expand Up @@ -339,7 +339,7 @@ func (te *Environment) waitForDefaultNamespace(config *rest.Config) error {
return fmt.Errorf("unable to create client: %w", err)
}
// It shouldn't take longer than 5s for the default namespace to be brought up in etcd
return wait.PollUntilContextTimeout(context.TODO(), time.Millisecond*500, time.Second*5, true, func(ctx context.Context) (bool, error) {
return wait.PollUntilContextTimeout(context.TODO(), time.Millisecond*50, time.Second*5, true, func(ctx context.Context) (bool, error) {
if err = cs.Get(ctx, types.NamespacedName{Name: "default"}, &corev1.Namespace{}); err != nil {
return false, nil //nolint:nilerr
}
Expand Down

0 comments on commit 27e1a92

Please sign in to comment.