mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
http: use a method to get local address
And limit its export to testing.
This commit is contained in:
@@ -23,7 +23,7 @@ func TestServeAssets(t *testing.T) {
|
||||
conf.ServeLiveFS = live
|
||||
_, h, _, _ := NewMock(t, conf)
|
||||
|
||||
helpers.TestHTTPEndpoints(t, h.Address, helpers.HTTPEndpointCases{
|
||||
helpers.TestHTTPEndpoints(t, h.LocalAddr(), helpers.HTTPEndpointCases{
|
||||
{
|
||||
URL: "/",
|
||||
ContentType: "text/html; charset=utf-8",
|
||||
|
||||
Reference in New Issue
Block a user