Live: rely on app url for origin check (#35983)

This commit is contained in:
Alexander Emelin
2021-06-23 19:51:03 +03:00
committed by GitHub
parent 5da8f3e258
commit 5bbf45592e
3 changed files with 93 additions and 0 deletions

View File

@ -84,6 +84,7 @@ type testState struct {
func newTestLive(t *testing.T) *live.GrafanaLive {
gLive := live.NewGrafanaLive()
gLive.RouteRegister = routing.NewRouteRegister()
gLive.Cfg = &setting.Cfg{AppURL: "http://localhost:3000/"}
err := gLive.Init()
require.NoError(t, err)
return gLive