diff --git a/pkg/analyzer/hpa_test.go b/pkg/analyzer/hpa_test.go index 62b273f5..0eacf2a4 100644 --- a/pkg/analyzer/hpa_test.go +++ b/pkg/analyzer/hpa_test.go @@ -491,14 +491,14 @@ func TestHPAAnalyzerWithExistingScaleTargetRefWithoutSpecifyingResources(t *test errorFound = true break } - if errorFound { - break - } } - if !errorFound { - t.Error("expected error 'does not have resource configured.' not found in analysis results") + if errorFound { + break } } + if !errorFound { + t.Error("expected error 'does not have resource configured.' not found in analysis results") + } } func TestHPAAnalyzerNamespaceFiltering(t *testing.T) {