app/vmalert: make golangci-lint happy after ae0e4a8c90

This commit is contained in:
Aliaksandr Valialkin 2023-07-27 13:26:04 -07:00
parent b3e93afd17
commit ce18e9b2c4
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -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)