From 244242c87cb2cb8d29d534a95c92269f2751b4fa Mon Sep 17 00:00:00 2001 From: RidRisR <79858083+RidRisR@users.noreply.github.com> Date: Fri, 10 Jan 2025 05:32:53 +0100 Subject: [PATCH] add return --- tests/e2e/br/framework/br/wait.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/e2e/br/framework/br/wait.go b/tests/e2e/br/framework/br/wait.go index 302da97ffa..30aa2cee21 100644 --- a/tests/e2e/br/framework/br/wait.go +++ b/tests/e2e/br/framework/br/wait.go @@ -366,6 +366,7 @@ func WaitForCompactComplete(f *framework.Framework, ns, name string, timeout tim if len(events.Items) == 0 { fmt.Printf("No events found for pod %s in namespace %s\n", name, ns) + return } sort.Slice(events.Items, func(i, j int) bool {