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:
@@ -15,7 +15,7 @@ func TestConfigHandler(t *testing.T) {
|
||||
config := DefaultConfiguration()
|
||||
config.Version = "1.2.3"
|
||||
_, h, _, _ := NewMock(t, config)
|
||||
helpers.TestHTTPEndpoints(t, h.Address, helpers.HTTPEndpointCases{
|
||||
helpers.TestHTTPEndpoints(t, h.LocalAddr(), helpers.HTTPEndpointCases{
|
||||
{
|
||||
URL: "/api/v0/console/configuration",
|
||||
JSONOutput: gin.H{
|
||||
|
||||
Reference in New Issue
Block a user