mirror of
https://github.com/grafana/grafana.git
synced 2025-09-25 13:23:56 +08:00
VSCode: Launch Grafana with Storage server (#88351)
* VSCode: Launch Grafana with Storage server * Fix module_server_test
This commit is contained in:
@ -34,6 +34,7 @@ func TestIntegrationWillRunInstrumentationServerWhenTargetHasNoHttpServer(t *tes
|
||||
}
|
||||
|
||||
_, cfg := db.InitTestDBWithCfg(t)
|
||||
cfg.HTTPPort = "3001"
|
||||
cfg.GRPCServerNetwork = "tcp"
|
||||
cfg.GRPCServerAddress = "localhost:10000"
|
||||
addStorageServerToConfig(t, cfg, dbType)
|
||||
@ -51,7 +52,7 @@ func TestIntegrationWillRunInstrumentationServerWhenTargetHasNoHttpServer(t *tes
|
||||
time.Sleep(500 * time.Millisecond) // wait for http server to be running
|
||||
|
||||
client := http.Client{}
|
||||
res, err := client.Get("http://localhost:3000/metrics")
|
||||
res, err := client.Get("http://localhost:3001/metrics")
|
||||
require.NoError(t, err)
|
||||
err = res.Body.Close()
|
||||
require.NoError(t, err)
|
||||
|
Reference in New Issue
Block a user