From 9e3a01a1bea3f4d5d99e53d55128d79160610349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Philippe=20Qu=C3=A9m=C3=A9ner?= Date: Fri, 29 Apr 2022 12:32:30 +0200 Subject: [PATCH] Alerting: skip flaky test (#48500) --- pkg/services/sqlstore/migrations/ualert/migration_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/services/sqlstore/migrations/ualert/migration_test.go b/pkg/services/sqlstore/migrations/ualert/migration_test.go index 0061d9f5871..63cb4214ec4 100644 --- a/pkg/services/sqlstore/migrations/ualert/migration_test.go +++ b/pkg/services/sqlstore/migrations/ualert/migration_test.go @@ -98,6 +98,7 @@ func TestAddDashAlertMigration(t *testing.T) { // TestDashAlertMigration tests the execution of the main DashAlertMigration. func TestDashAlertMigration(t *testing.T) { + t.Skip("Test is flaky") // Run initial migration to have a working DB. x := setupTestDB(t) @@ -460,6 +461,7 @@ var ( ) // createAlertNotification creates a legacy alert notification channel for inserting into the test database. +//nolint func createAlertNotification(t *testing.T, orgId int64, uid string, channelType string, settings string, defaultChannel bool) *models.AlertNotification { t.Helper() settingsJson := simplejson.New() @@ -486,6 +488,7 @@ func createAlertNotification(t *testing.T, orgId int64, uid string, channelType } // createAlert creates a legacy alert rule for inserting into the test database. +//nolint func createAlert(t *testing.T, orgId int64, dashboardId int64, panelsId int64, name string, notifierUids []string) *models.Alert { t.Helper() @@ -642,6 +645,7 @@ func boolPointer(b bool) *bool { } // createAlertNameMatchers creates a temporary alert_name Matchers that will be replaced during runtime with the generated rule_uid. +//nolint func createAlertNameMatchers(alertName string) ualert.Matchers { matcher, _ := labels.NewMatcher(labels.MatchEqual, "alert_name", alertName) return ualert.Matchers(labels.Matchers{matcher})