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:
@@ -31,7 +31,7 @@ func TestServeDocs(t *testing.T) {
|
||||
_, h, _, _ := NewMock(t, conf)
|
||||
|
||||
resp, err := netHTTP.Get(fmt.Sprintf("http://%s/api/v0/console/docs/%s",
|
||||
h.Address, tc.Path))
|
||||
h.LocalAddr(), tc.Path))
|
||||
if err != nil {
|
||||
t.Fatalf("GET /api/v0/console/docs/%s:\n%+v", tc.Path, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user