Chore: Fix grafana live stats reset when sending usage stats (#39558)

This commit is contained in:
Tania B
2021-09-23 12:55:00 +03:00
committed by GitHub
parent 65d79d9a30
commit b9acdce837
6 changed files with 24 additions and 2 deletions
+2
View File
@@ -113,6 +113,8 @@ func (usm *usageStatsMock) ShouldBeReported(_ string) bool {
return true
}
func (usm *usageStatsMock) RegisterSendReportCallback(_ usagestats.SendReportCallbackFunc) {}
func newTestLive(t *testing.T) *live.GrafanaLive {
cfg := &setting.Cfg{AppURL: "http://localhost:3000/"}
gLive, err := live.ProvideService(nil, cfg, routing.NewRouteRegister(), nil, nil, nil, nil, sqlstore.InitTestDB(t), &usageStatsMock{t: t})