dashboards: simplified code.

This commit is contained in:
Leonard Gram 2019-03-13 15:47:47 +01:00
parent b82b94a247
commit fc0461134f

View File

@ -972,12 +972,9 @@ func postDashboardScenario(desc string, url string, routePattern string, mock *d
Convey(desc+" "+url, func() {
defer bus.ClearBusHandlers()
cfg := setting.NewCfg()
cfg.EditorsCanAdmin = false
hs := HTTPServer{
Bus: bus.GetBus(),
Cfg: cfg,
Cfg: setting.NewCfg(),
}
sc := setupScenarioContext(url)