From ce18e9b2c41cde39356596b699dde7322ae9ad49 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 27 Jul 2023 13:26:04 -0700 Subject: [PATCH] app/vmalert: make golangci-lint happy after ae0e4a8c909b1b7798e681749afc5bd57c0ae43a --- app/vmalert/alerting_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/vmalert/alerting_test.go b/app/vmalert/alerting_test.go index 9c779d7386..5f8f725588 100644 --- a/app/vmalert/alerting_test.go +++ b/app/vmalert/alerting_test.go @@ -872,6 +872,7 @@ func TestAlertingRule_Template(t *testing.T) { gotAlert := tc.rule.alerts[hash] if gotAlert == nil { t.Fatalf("alert %d is missing; labels: %v; annotations: %v", hash, expAlert.Labels, expAlert.Annotations) + break } if !reflect.DeepEqual(expAlert.Annotations, gotAlert.Annotations) { t.Fatalf("expected to have annotations %#v; got %#v", expAlert.Annotations, gotAlert.Annotations)