Fix parameter passing error

Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
bzsuni 2023-11-02 01:14:45 +08:00
parent 9e84a02950
commit 003e4886c6

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
})