From 26a59d2c8bc9a0f535e6aef80a0409a82e510185 Mon Sep 17 00:00:00 2001 From: RidRisR <79858083+RidRisR@users.noreply.github.com> Date: Fri, 10 Jan 2025 05:10:48 +0100 Subject: [PATCH] lint --- tests/e2e/br/framework/br/wait.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/e2e/br/framework/br/wait.go b/tests/e2e/br/framework/br/wait.go index 186d9e0e89..302da97ffa 100644 --- a/tests/e2e/br/framework/br/wait.go +++ b/tests/e2e/br/framework/br/wait.go @@ -17,7 +17,6 @@ import ( "context" "encoding/binary" "fmt" - "os" "path" "sort" "time" @@ -364,10 +363,9 @@ func WaitForCompactComplete(f *framework.Framework, ns, name string, timeout tim if err != nil { log.Logf("Error listing events: %v", err) } - + if len(events.Items) == 0 { fmt.Printf("No events found for pod %s in namespace %s\n", name, ns) - os.Exit(0) } sort.Slice(events.Items, func(i, j int) bool { @@ -375,9 +373,9 @@ func WaitForCompactComplete(f *framework.Framework, ns, name string, timeout tim timeJ := events.Items[j].LastTimestamp.Time return timeI.After(timeJ) }) - + latestEvent := events.Items[0] - + log.Logf("Type: %s\n", latestEvent.Type) log.Logf("Reason: %s\n", latestEvent.Reason) log.Logf("Message: %s\n", latestEvent.Message)