Skip to content

Commit f883370

Browse files
authored
Merge pull request kubernetes#121679 from bzsuni/fix/integration/apiserver/discovery/service-go/WaitForReady
Fix parameter passing error in function WaitForReady in file test/integration/apiserver/discovery
2 parents edb39d7 + 003e488 commit f883370

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/apiserver/discovery/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (f *fakeService) Run(ctx context.Context) error {
117117
}
118118

119119
func (f *fakeService) WaitForReady(ctx context.Context) error {
120-
err := wait.PollWithContext(ctx, 1*time.Second, 200*time.Millisecond, func(ctx context.Context) (done bool, err error) {
120+
err := wait.PollUntilContextTimeout(ctx, 200*time.Millisecond, time.Second, false, func(ctx context.Context) (done bool, err error) {
121121
return f.Port() != nil, nil
122122
})
123123

0 commit comments

Comments
 (0)