pull/777/head
Aaron Schlesinger 9 years ago
parent fe3afa8012
commit 56069ae474

@ -10,7 +10,7 @@ func TestProbesServer(t *testing.T) {
mux := newProbesMux()
srv := httptest.NewServer(mux)
defer srv.Close()
resp, err := http.Get("/readiness")
resp, err := http.Get(srv.URL + "/readiness")
if err != nil {
t.Fatalf("GET /readiness returned an error (%s)", err)
}
@ -18,7 +18,7 @@ func TestProbesServer(t *testing.T) {
t.Fatalf("GET /readiness returned status code %d, expected %d", resp.StatusCode, http.StatusOK)
}
resp, err = http.Get("/liveness")
resp, err = http.Get(srv.URL + "/liveness")
if err != nil {
t.Fatalf("GET /liveness returned an error (%s)", err)
}

Loading…
Cancel
Save