From b64dd0ad02dd63b3dae72eb0e99b37c17dc898b2 Mon Sep 17 00:00:00 2001 From: Francesco Ilario Date: Tue, 8 Oct 2024 00:45:21 +0200 Subject: [PATCH] Update e2e/pkg/poll/poll.go Signed-off-by: Francesco Ilario --- e2e/pkg/poll/poll.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/pkg/poll/poll.go b/e2e/pkg/poll/poll.go index a9453da..1cae469 100644 --- a/e2e/pkg/poll/poll.go +++ b/e2e/pkg/poll/poll.go @@ -52,8 +52,8 @@ func WaitForConditionImmediately(ctx context.Context, condition func(ctx context // second. These can be overridden with the `E2E_POLL_TIMEOUT` and // `E2E_POLL_STEP_DURATION` environment variables. // -// The errors returned by the invocations of the `condition` function are handled and -// and used in to return a Joined error if timeout is hit. +// The errors returned by the invocations of the `condition` function are collected and +// -if timeout is hit- returned as a Joined error. func WaitForConditionImmediatelyJoiningErrors(ctx context.Context, condition func(ctx context.Context) (bool, error)) error { errs := []error{} err := WaitForConditionImmediately(ctx, func(ctx context.Context) (bool, error) {