Chore: Refactor Server Run and Shutdown (#32611)

This commit is contained in:
Alexander Emelin
2021-04-07 10:44:06 +03:00
committed by GitHub
parent 2c8728a2a4
commit 7c182b1d2d
4 changed files with 198 additions and 78 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func StartGrafana(t *testing.T, grafDir, cfgPath string, sqlStore *sqlstore.SQLS
}
}()
t.Cleanup(func() {
server.Shutdown("")
server.Shutdown("test cleanup")
})
// Wait for Grafana to be ready