1
0
Fork 0

Improve logging output for failing healthchecks

This commit is contained in:
Marco Jantke 2018-01-03 12:32:03 +01:00 committed by Traefiker
parent c84fb9895e
commit cbd54470ba
3 changed files with 40 additions and 32 deletions

View file

@ -81,7 +81,7 @@ func TestSetBackendsConfiguration(t *testing.T) {
Path: "/path",
Interval: healthCheckInterval,
LB: lb,
})
}, "backendName")
serverURL := testhelpers.MustParseURL(ts.URL)
if test.startHealthy {
lb.servers = append(lb.servers, serverURL)
@ -95,7 +95,7 @@ func TestSetBackendsConfiguration(t *testing.T) {
wg := sync.WaitGroup{}
wg.Add(1)
go func() {
check.execute(ctx, "id", backend)
check.execute(ctx, backend)
wg.Done()
}()
@ -168,7 +168,7 @@ func TestNewRequest(t *testing.T) {
Options{
Path: test.path,
Port: test.port,
})
}, "backendName")
u := &url.URL{
Scheme: "http",