Skip to content

Commit c66dbac

Browse files
committed
Revert "Give API server wait.ForeverTestTimeout minutes to come up"
This reverts commit 3c9cb1d.
1 parent 66d31cc commit c66dbac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • staging/src/github.com/kcp-dev/sdk/testing/server

staging/src/github.com/kcp-dev/sdk/testing/server/ready.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func WaitForReady(ctx context.Context, cfg *rest.Config) error {
5353

5454
func waitForEndpoint(ctx context.Context, client *rest.RESTClient, endpoint string) error {
5555
var lastError error
56-
if err := wait.PollUntilContextTimeout(ctx, 100*time.Millisecond, wait.ForeverTestTimeout, true, func(ctx context.Context) (bool, error) {
56+
if err := wait.PollUntilContextTimeout(ctx, 100*time.Millisecond, time.Minute, true, func(ctx context.Context) (bool, error) {
5757
req := rest.NewRequest(client).RequestURI(endpoint)
5858
if _, err := req.Do(ctx).Raw(); err != nil {
5959
lastError = fmt.Errorf("error contacting %s: failed components: %v", req.URL(), unreadyComponentsFromError(err))

0 commit comments

Comments
 (0)