Skip to content

Commit

Permalink
Update pkg/envtest/webhook.go
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Büringer <4662360+sbueringer@users.noreply.github.com>
  • Loading branch information
mythi and sbueringer committed Apr 27, 2023
1 parent 1e9175c commit 9eaa32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/envtest/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func WaitForWebhooks(config *rest.Config,

// Poll until all resources are found in discovery
p := &webhookPoller{config: config, waitingFor: waitingFor}
return wait.PollUntilContextTimeout(context.Background(), options.PollInterval, options.MaxTime, true, p.poll)
return wait.PollUntilContextTimeout(context.TODO(), options.PollInterval, options.MaxTime, true, p.poll)
}

// poller checks if all the resources have been found in discovery, and returns false if not.
Expand Down

0 comments on commit 9eaa32b

Please sign in to comment.