diff --git a/pkg/tests/testinfra/testinfra.go b/pkg/tests/testinfra/testinfra.go index 9c1e6f3716b..9077f71435b 100644 --- a/pkg/tests/testinfra/testinfra.go +++ b/pkg/tests/testinfra/testinfra.go @@ -58,7 +58,7 @@ func StartGrafana(t *testing.T, grafDir, cfgPath string, sqlStore *sqlstore.SQLS } }() t.Cleanup(func() { - server.Shutdown("test cleanup") + go server.Shutdown("test cleanup") }) // Wait for Grafana to be ready