1 parent 66d31cc commit c66dbacCopy full SHA for c66dbac
1 file changed
staging/src/github.com/kcp-dev/sdk/testing/server/ready.go
@@ -53,7 +53,7 @@ func WaitForReady(ctx context.Context, cfg *rest.Config) error {
53
54
func waitForEndpoint(ctx context.Context, client *rest.RESTClient, endpoint string) error {
55
var lastError error
56
- if err := wait.PollUntilContextTimeout(ctx, 100*time.Millisecond, wait.ForeverTestTimeout, true, func(ctx context.Context) (bool, error) {
+ if err := wait.PollUntilContextTimeout(ctx, 100*time.Millisecond, time.Minute, true, func(ctx context.Context) (bool, error) {
57
req := rest.NewRequest(client).RequestURI(endpoint)
58
if _, err := req.Do(ctx).Raw(); err != nil {
59
lastError = fmt.Errorf("error contacting %s: failed components: %v", req.URL(), unreadyComponentsFromError(err))
0 commit comments