mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-12 06:24:10 +01:00
http: use a method to get local address
And limit its export to testing.
This commit is contained in:
@@ -29,7 +29,7 @@ func TestConfigurationEndpoint(t *testing.T) {
|
||||
"bye": "Goodbye pal!",
|
||||
})
|
||||
|
||||
helpers.TestHTTPEndpoints(t, h.Address, helpers.HTTPEndpointCases{
|
||||
helpers.TestHTTPEndpoints(t, h.LocalAddr(), helpers.HTTPEndpointCases{
|
||||
{
|
||||
URL: "/api/v0/orchestrator/configuration/inlet",
|
||||
ContentType: "application/x-yaml; charset=utf-8",
|
||||
|
||||
Reference in New Issue
Block a user