Advisor: Address error logs (#107125)

This commit is contained in:
Andres Martinez Gotor
2025-06-25 12:08:30 +02:00
committed by GitHub
parent f621e2f507
commit c5a6bb5ab1
5 changed files with 37 additions and 15 deletions
+2 -3
View File
@@ -178,9 +178,8 @@ func TestProcessCheck_RunRecoversFromPanic(t *testing.T) {
}
err = processCheck(ctx, logging.DefaultLogger, client, typesClient, obj, check)
assert.Error(t, err)
assert.Contains(t, err.Error(), "panic recovered in step")
assert.Equal(t, checks.StatusAnnotationError, obj.GetAnnotations()[checks.StatusAnnotation])
assert.NoError(t, err)
assert.Equal(t, checks.StatusAnnotationProcessed, obj.GetAnnotations()[checks.StatusAnnotation])
}
func TestProcessCheckRetry_NoRetry(t *testing.T) {