Build: Stricter linting should break the build (#23606)

This commit is contained in:
Carl Bergquist
2020-04-16 16:09:27 +02:00
committed by GitHub
parent 19f03e593c
commit 9652a1410b
6 changed files with 41 additions and 11 deletions
@@ -2,12 +2,13 @@ package notifiers
import (
"context"
"testing"
"github.com/grafana/grafana/pkg/bus"
"github.com/grafana/grafana/pkg/components/simplejson"
"github.com/grafana/grafana/pkg/models"
"github.com/grafana/grafana/pkg/services/alerting"
. "github.com/smartystreets/goconvey/convey"
"testing"
)
func TestOpsGenieNotifier(t *testing.T) {
@@ -83,9 +84,9 @@ func TestOpsGenieNotifier(t *testing.T) {
receivedTags := make([]string, 0)
bus.AddHandlerCtx("alerting", func(ctx context.Context, cmd *models.SendWebhookSync) error {
bodyJson, err := simplejson.NewJson([]byte(cmd.Body))
bodyJSON, err := simplejson.NewJson([]byte(cmd.Body))
if err == nil {
receivedTags = bodyJson.Get("tags").MustStringArray([]string{})
receivedTags = bodyJSON.Get("tags").MustStringArray([]string{})
}
return err
})