Build: Fix with cleanup call maybe? (#33590)

This commit is contained in:
Kyle Brandt 2021-04-30 16:02:37 -04:00 committed by GitHub
parent efe856ae4e
commit 759a0cd71b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ import (
"testing"
"time"
"github.com/grafana/grafana/pkg/registry"
"github.com/grafana/grafana/pkg/services/ngalert/models"
"github.com/grafana/grafana/pkg/services/ngalert/store"
@ -25,6 +26,7 @@ func mockTimeNow() {
func TestAlertInstanceOperations(t *testing.T) {
dbstore := setupTestEnv(t, baseIntervalSeconds)
t.Cleanup(registry.ClearOverrides)
alertRule1 := createTestAlertRule(t, dbstore, 60)
orgID := alertRule1.OrgID