mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Call server.Shutdown() as go routine (#33288)
server.Shutdown() blocks trying to write to s.shutdownFinished in some cases when using a test Grafana instance for a series of integration tests. See https://github.com/grafana/grafana/blob/master/pkg/server/server.go#L222-L224
This commit is contained in:
parent
463520c03c
commit
aa5bdff97d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user