Merge pull request #121679 from bzsuni/fix/integration/apiserver/discovery/service-go/WaitForReady

Fix parameter passing error in function WaitForReady in file test/integration/apiserver/discovery
This commit is contained in:
Kubernetes Prow Robot
2023-11-03 13:02:46 +01:00
committed by GitHub

View File

@@ -117,7 +117,7 @@ func (f *fakeService) Run(ctx context.Context) error {
}
func (f *fakeService) WaitForReady(ctx context.Context) error {
err := wait.PollWithContext(ctx, 1*time.Second, 200*time.Millisecond, func(ctx context.Context) (done bool, err error) {
err := wait.PollUntilContextTimeout(ctx, 200*time.Millisecond, time.Second, false, func(ctx context.Context) (done bool, err error) {
return f.Port() != nil, nil
})